Skip to content

Commit a9b9640

Browse files
Document update (#109)
* tests added * refined test data * Delete cyoutput.json * Delete output.json * Delete src/monthlySummaryMethods/buildSummary.test.js.new * Delete test-results/output.json * Update package.json
1 parent 3b0bef7 commit a9b9640

File tree

66 files changed

+9508
-3030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+9508
-3030
lines changed

.eslintrc.cjs

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
commonjs: true,
77
},
88
extends: 'eslint:recommended',
9+
plugins: ['jsdoc'],
910
parserOptions: {
1011
ecmaVersion: 2021,
1112
sourceType: 'module',
@@ -18,5 +19,65 @@ module.exports = {
1819
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
1920
'no-console': 'off',
2021
'prefer-const': 'error',
22+
// JSDoc specific rules
23+
'jsdoc/require-jsdoc': [
24+
'warn',
25+
{
26+
publicOnly: true,
27+
require: {
28+
FunctionDeclaration: true,
29+
MethodDefinition: true,
30+
ClassDeclaration: true,
31+
},
32+
},
33+
],
34+
'jsdoc/require-param': 'warn',
35+
'jsdoc/require-returns': 'warn',
36+
'jsdoc/require-returns-type': 'warn',
37+
'jsdoc/valid-types': 'warn',
38+
// Disable TypeScript-specific rules
39+
'@typescript-eslint/no-explicit-any': 'off',
40+
'@typescript-eslint/no-unused-vars': 'off',
41+
'@typescript-eslint/explicit-function-return-type': 'off',
42+
'@typescript-eslint/explicit-module-boundary-types': 'off',
43+
'@typescript-eslint/no-empty-interface': 'off',
44+
'@typescript-eslint/no-empty-function': 'off',
45+
'@typescript-eslint/no-non-null-assertion': 'off',
46+
'@typescript-eslint/no-var-requires': 'off',
47+
'@typescript-eslint/ban-types': 'off',
48+
'@typescript-eslint/ban-ts-comment': 'off',
49+
'@typescript-eslint/no-empty-interface': 'off',
50+
'@typescript-eslint/no-inferrable-types': 'off',
51+
'@typescript-eslint/no-namespace': 'off',
52+
'@typescript-eslint/no-this-alias': 'off',
53+
'@typescript-eslint/no-var-requires': 'off',
54+
'@typescript-eslint/prefer-as-const': 'off',
55+
'@typescript-eslint/prefer-namespace-keyword': 'off',
56+
'@typescript-eslint/triple-slash-reference': 'off',
57+
'@typescript-eslint/type-annotation-spacing': 'off',
58+
'@typescript-eslint/unified-signatures': 'off',
59+
'@typescript-eslint/no-floating-promises': 'off',
60+
'@typescript-eslint/no-misused-promises': 'off',
61+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
62+
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
63+
'@typescript-eslint/no-unsafe-assignment': 'off',
64+
'@typescript-eslint/no-unsafe-call': 'off',
65+
'@typescript-eslint/no-unsafe-member-access': 'off',
66+
'@typescript-eslint/no-unsafe-return': 'off',
67+
'@typescript-eslint/restrict-plus-operands': 'off',
68+
'@typescript-eslint/restrict-template-expressions': 'off',
69+
'@typescript-eslint/unbound-method': 'off',
2170
},
71+
overrides: [
72+
{
73+
files: ['*.js'],
74+
rules: {
75+
// Additional rules specific to .js files
76+
'@typescript-eslint/no-explicit-any': 'off',
77+
'@typescript-eslint/no-unused-vars': 'off',
78+
'@typescript-eslint/explicit-function-return-type': 'off',
79+
'@typescript-eslint/explicit-module-boundary-types': 'off',
80+
},
81+
},
82+
],
2283
};

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Our package bridges Cypress and Playwright test runs with Google Sheets or CSV,
2323
- [Column: Category](#column-category)
2424
- [Column: Manual Case](#column-manual-case)
2525
- ['The Works'](#the-works)
26-
6. [Cypress-Grep Integration](#cypressgrep-integration)
26+
6. [cypress/grep Integration](#cypressgrep-integration)
2727
7. [CI/CD](#cicd)
2828
- [GitHub](#github-actions-example)
2929
- [GitLab](#gitlab-ci-example)
@@ -272,7 +272,8 @@ All commands require that test suite result data is present, in this example, th
272272
- This command processes the data from the test results and create a detailed report.
273273
- A new Sheet Tab will be created with the current day's title (e.g., `Mar 24, 2024`), to which this detailed report will be written.
274274
- If the Sheet has Tabs for the previous month (e.g., current month is April and sheet tabs exist for `Mar 24, 2024`, `Mar 25, 2024`), then a monthly summary will be generated with that previous month's data (`Summary Mar 2024`).
275-
- The report will fail if test result data is not present in JSON format.
275+
- If you have activated the Weekly Summary feature, and the Sheet has Tabs for the previous week, a weekly summary will be generated with that week's data.
276+
- The reports will fail if test result data is not present in JSON format.
276277
- Duplicate Sheet Tabs are not created by defualt, to create a duplicate Tab, use the flag `--duplicate`.
277278
278279
- **To run the daily report only**
@@ -298,7 +299,7 @@ All commands require that test suite result data is present, in this example, th
298299
- Use the base commands with the optional flag `--duplicate`
299300
- `npx qa-shadow-report [framework] --duplicate`
300301
- `npx qa-shadow-report [framework] todays-report --duplicate`
301-
- Monthly summary dupliactes must be created directly, using the command `npx qa-shadow-report [framework] monthly-summary`.
302+
- Monthly summary dupliactes must be created directly, using the command `npx qa-shadow-report [framework] monthly-summary --duplicate`.
302303
303304
### Quick Command Reference
304305
@@ -511,7 +512,7 @@ module.exports = {
511512

512513
## cypress/grep Integration
513514

514-
To enhance your testing workflow and leverage the team name, test type, and test category annotations you've included in your test titles, we recommend integrating the [`cypress-grep`](https://www.npmjs.com/package/@cypress/grep) plugin.
515+
To enhance your testing workflow and leverage the team name, test type, and test category annotations you've included in your test titles, we recommend integrating the [`cypress/grep`](https://www.npmjs.com/package/@cypress/grep) plugin.
515516

516517
### Benefits of Using cypress/grep
517518

@@ -543,7 +544,7 @@ By integrating `cypress/grep`, you can run subsets of tests based on your annota
543544

544545
### CI/CD
545546

546-
This package is best suited for automated nightly runs, enabling teams to efficiently monitor project status and collaborate on test results every morning.
547+
This package is best suited for automated nightly runs where the daily report can help individual contributors or curious supervisors who need immediate and up-to-date insights. The weekly report is great for weekly meetings, providing a short-term summary of the previous week's test results. The monthly report offers a high-level overview, highlighting trends for QA managers or responsible parties to track long-term progress and performance.
547548

548549
**Integrating Google Sheets Credentials with CI/CD:**
549550

0 commit comments

Comments
 (0)