Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Refined allure-js-commons #909

Merged
merged 84 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
9c76c81
wip
epszaw Mar 20, 2024
bc865f5
allure sdk wip
epszaw Mar 21, 2024
f8f108d
add package mappings for new commons
epszaw Mar 21, 2024
cc7e3fa
working on new commons structure
epszaw Mar 22, 2024
1160984
semi-working vitest reporter based on the new allure runtime
epszaw Mar 26, 2024
4df6e2c
implement new messages-based communication model for the new runtimes
epszaw Apr 2, 2024
54cf4d9
testplan support for vitest
epszaw Apr 2, 2024
61578ea
small cleanup
epszaw Apr 2, 2024
00a9240
simplify new commons exports
epszaw Apr 2, 2024
8f607eb
remove old code from new commons
epszaw Apr 2, 2024
bd1bec8
migrate cypress integration on the new architecture
epszaw Apr 3, 2024
0d1df9b
add base test for vitest
epszaw Apr 4, 2024
6f1f985
set correct history id to test results
epszaw Apr 5, 2024
39d70e5
complete cypress integration base on the new architecture
epszaw Apr 8, 2024
ade1778
set global test runtime for vitest and cypress
epszaw Apr 9, 2024
abfaa50
introduce low-level runtime api methods to test runtime
epszaw Apr 9, 2024
44e6928
adapt cypress runtime api for the new test runtime
epszaw Apr 9, 2024
2d68b7c
early allure runtime api facade implementation
epszaw Apr 9, 2024
0eee5b3
use the facade for cypress integration
epszaw Apr 10, 2024
7a283e5
Support step renaming and step parameters
delatrie Apr 10, 2024
9ac4e72
Fix cypress result duplication in interactive mode
delatrie Apr 10, 2024
1bc1978
Put a meaningful message for unexpected msg sequence
delatrie Apr 10, 2024
63e6573
Apply prettier
delatrie Apr 10, 2024
727dc58
split sync and async runtime apis
epszaw Apr 11, 2024
7890325
Merge sync and async facades
delatrie Apr 12, 2024
fb24733
Make runtime message types more extensible
delatrie Apr 12, 2024
c779a15
updated cucumberjs integration in progress
epszaw Apr 16, 2024
76f97ad
actualize labels logic for cucumber integration
epszaw Apr 16, 2024
3478223
fix failed and broken steps status detection
epszaw Apr 16, 2024
1f5f5a0
complete cucumberjs attachments logic
epszaw Apr 17, 2024
0321e83
complete cucumber integration upgrade
epszaw Apr 17, 2024
10b20c8
update cucumber docs
epszaw Apr 17, 2024
d7b1f07
remove some useless files from cucumber package
epszaw Apr 17, 2024
bc76995
working on a new version of playwright integration
epszaw Apr 18, 2024
060268a
introduce labels and links runtime methods for the updated integrations
epszaw Apr 19, 2024
04200db
update some playwright tests
epszaw Apr 20, 2024
7ffc513
update rest playwright tests
epszaw Apr 22, 2024
fe8dbab
fix correct stages for playwright tests and stages
epszaw Apr 22, 2024
fe28e64
add logic to handle unreported tests for playwright
epszaw Apr 22, 2024
c057978
change playwright setup and usage logic
epszaw Apr 23, 2024
4c92de8
basic codeceptjs based on the new architecture
epszaw Apr 24, 2024
330c0e1
complete codeceptjs integration functionality
epszaw Apr 26, 2024
f08d6d5
add test for codeceptjs title metadata handler
epszaw Apr 29, 2024
65e6608
Add relative path helpers to commons
delatrie Apr 29, 2024
1ebe048
Add testCaseId calculation on test stop
delatrie Apr 29, 2024
74049c2
Add default suites helper to commons
delatrie Apr 29, 2024
8b1dfa6
Add lables from env on test start
delatrie Apr 29, 2024
bfb1656
Export reporter runtime
delatrie Apr 29, 2024
b7d42dd
Rewrite allure-mocha with new SDK
delatrie Apr 29, 2024
f0ed535
base jest implementation based on the new architecture
epszaw Apr 30, 2024
a007314
complete jest integration based on the new architecture
epszaw Apr 30, 2024
cb24704
add jasmine specs handling logic
epszaw Apr 30, 2024
4fc23bb
update environment info and categories write logic
epszaw May 6, 2024
1d707e4
fix problem when test failed but there is no running allure step
epszaw May 6, 2024
b5cf4a1
Introduce Allure context into commons
delatrie May 7, 2024
ce7020a
Adjust mocha to new runtime API. Implement fixtures in mocha (WIP)
delatrie May 7, 2024
c13e07d
Add current item methods to runtime
delatrie May 7, 2024
d9416b8
add hooks test stub for jasmine
epszaw May 7, 2024
8dc239f
Make static context provider generic
delatrie May 7, 2024
31fe2a6
Improve mocha test organization
delatrie May 7, 2024
e90b264
Fix runtime usage by jasmine
delatrie May 7, 2024
51d0635
implement base newman reporter based on the new architecture
epszaw May 8, 2024
2e00da5
complete newman integration migration to the new architecture
epszaw May 8, 2024
d9c8ac9
delete decorators package
epszaw May 10, 2024
a9aee29
add jasmine hooks management
epszaw May 10, 2024
650f2d8
add ability to get current container link
epszaw May 13, 2024
f7ae70c
unify typescript configuration for all packages
epszaw May 13, 2024
c37188f
remove hermione
epszaw May 13, 2024
b081394
yarn install fix
baev May 13, 2024
39b3b31
Rework fixtures in commons
delatrie May 14, 2024
604be58
Apply common changes to mocha
delatrie May 14, 2024
78f1395
Fix container and fixture tests in mocha
delatrie May 14, 2024
cf9e067
update codeceptjs reporter runtime call signatures
epszaw May 15, 2024
3bdf691
update cucumberjs reporter runtime call signatures
epszaw May 15, 2024
0a305b0
update cypress reporter runtime call signatures
epszaw May 15, 2024
269b436
update jest reporter runtime call signatures
epszaw May 15, 2024
39ba6c4
update playwright reporter runtime call signatures
epszaw May 15, 2024
087b028
update vitest reporter runtime call signatures
epszaw May 15, 2024
c5fa20f
update newman reporter runtime call signatures
epszaw May 15, 2024
610130c
update commons tests
epszaw May 16, 2024
796d6a6
update jasmine reporter runtime call signatures
epszaw May 16, 2024
211d0cb
fix eslint and prettier issues
epszaw May 16, 2024
a75fdb6
update vitest build
epszaw May 16, 2024
6eac805
update node versions for some build workflow jobs
epszaw May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
250 changes: 250 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
module.exports = {
root: true,
globals: {
__PATH_PREFIX__: true,
},
env: {
browser: true,
node: true,
es6: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: "tsconfig.json",
sourceType: "module",
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: [
"eslint-plugin-no-null",
"eslint-plugin-prefer-arrow",
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"@typescript-eslint"
],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
{
default: "array",
},
],
"@typescript-eslint/ban-types": [
"error",
{
types: {
Object: {
message: "Avoid using the `Object` type. Did you mean `object`?",
},
Function: {
message: "Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
},
Boolean: {
message: "Avoid using the `Boolean` type. Did you mean `boolean`?",
},
Number: {
message: "Avoid using the `Number` type. Did you mean `number`?",
},
String: {
message: "Avoid using the `String` type. Did you mean `string`?",
},
Symbol: {
message: "Avoid using the `Symbol` type. Did you mean `symbol`?",
},
},
},
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
accessibility: "explicit",
},
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": [
"off",
2,
{
FunctionDeclaration: {
parameters: "first",
},
FunctionExpression: {
parameters: "first",
},
},
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
multiline: {
delimiter: "semi",
requireLast: true,
},
singleline: {
delimiter: "semi",
requireLast: false,
},
},
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-inferrable-types": [
"error",
{
ignoreParameters: true,
ignoreProperties: true,
},
],
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNumber: true,
allowBoolean: true,
allowAny: true,
allowNullish: false,
},
],
"@typescript-eslint/semi": ["error"],
"@typescript-eslint/no-shadow": [
"error",
{
hoist: "all",
},
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
path: "always",
types: "prefer-import",
lib: "always",
},
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "off",
"arrow-parens": ["off", "always"],
"brace-style": ["error", "1tbs"],
complexity: "off",
"constructor-super": "error",
curly: "error",
"eol-last": "error",
eqeqeq: ["error", "smart"],
"guard-for-in": "error",
"id-blacklist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined",
],
"id-match": "error",
"import/no-default-export": "off",
"import/no-unassigned-import": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"max-classes-per-file": ["error", 5],
// "max-len": [
// "error",
// {
// code: 120,
// },
// ],
"max-lines": ["error", 700],
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-debugger": "error",
"no-empty": "off",
"no-eval": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-null/no-null": "off",
"no-restricted-imports": ["error", "rxjs"],
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": ["error", { allow: ["_currentRetry", "_retriedTest", "_retries"] }],
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-var": "error",
"object-shorthand": "off",
"one-var": ["off", "never"],
"padding-line-between-statements": [
"off",
{
blankLine: "always",
prev: "*",
next: "return",
},
],
"prefer-arrow/prefer-arrow-functions": "error",
"prefer-const": "error",
"prefer-template": "error",
"quote-props": ["error", "consistent-as-needed"],
radix: "error",
"space-before-function-paren": [
"error",
{
anonymous: "always",
asyncArrow: "always",
named: "never",
},
],
"spaced-comment": [
"warn",
"always",
{
markers: ["/"],
},
],
"use-isnan": "error",
"valid-typeof": "off"
},
};
Loading
Loading