Skip to content

Commit b1e0f63

Browse files
committed
revised docs and setup instructions
1 parent 4ab31f6 commit b1e0f63

File tree

3 files changed

+42
-29
lines changed

3 files changed

+42
-29
lines changed

README.md

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,49 +30,56 @@ Our package bridges Cypress and Playwright test runs with Google Sheets or CSV,
3030

3131
### qa-shadow-report Setup Guide
3232

33-
Upon installing `qa-shadow-report`, you can run the command `npx qasr-setup`, which initiates a series of Yes or No questions to guide you through setting up the tool for your testing framework and package manager. You may choose to exit the setup at any time by entering `EXIT`. You will then need to manually complete the setup by following the detailed instructions provided in the [Cypress](#cypress) or [Playwright](#playwright) sections of this guide.
33+
After installing `qa-shadow-report` using the command:
3434

35-
This setup process is designed to tailor the installation to your specific needs, ensuring that all dependencies and configurations are correctly established for your environment.
35+
`npm i qa-shadow-report`
36+
37+
you will then need to run the command:
38+
39+
`npx qasr-setup`
40+
41+
this initiates a series of `Yes` or `No` questions to guide you through setting up the tool for your testing framework and package manager. You may choose to exit the setup at any time by entering `EXIT`, which is not recommended. If you exit setup, you will then need to restart using the command `npx qasr-setup`
3642

3743
**Note:** The commands in this guide assume the use of `npm/npx`. If you prefer to use `yarn`, replace `npm/npx` with `yarn` where appropriate.
3844

3945
## Quick Start
4046

4147
### Generate Reports in CSV Format
4248

43-
- Use the base commands with a framework of Cypress or Playwright and the optional flag `--csv` to run a daily report.
49+
- Ensure test result data is present in your framework's test results output folder, in the form of JSON. This output should be present after you finish `qasr-setup` AND run your test suite. test results will usually be found in `results/output.json`.
4450

45-
- **Using NPX:**
51+
- A detailed CSV will be compiled and generated in the `[framework]/downloads` folder.
4652

47-
```
48-
npx qa-shadow-report [framework] --csv
49-
```
53+
- Only daily summmaries are available for CSV, monthly summary reports are not currently supported in CSV format.
5054

51-
```
52-
npx qa-shadow-report [framework] todays-report --csv
53-
```
55+
Use either command to generate reports using either **NPX** or **NPM scripts** with a framework of **Cypress** or **Playwright** and the optional flag `--csv`. These commands will generate a CSV report, and initiate setup if you havent yet run the qa-shadow-report setup.
5456

55-
- **Using NPM Scripts:**
57+
- **Using NPX:**
58+
Run one of the following commands:
5659

57-
Add to your `package.json` scripts:
60+
npx qa-shadow-report [framework] --csv
5861

59-
```
60-
"scripts": {
61-
"report:csv": "qa-shadow-report [framework] --csv",
62-
}
63-
```
62+
Or, the more verbose
6463

65-
Then run:
64+
npx qa-shadow-report [framework] todays-report --csv
6665

67-
```
68-
npm run report:csv
69-
```
66+
- **Using NPM Scripts:**
7067

71-
- Ensure JSON data is present from your framework's test results output. Check the [Prerequisites](#prerequisites) section to see a framework configuration.
68+
Add to your `package.json` scripts:
7269

73-
- A detailed summary will be downloaded into the `cypress/downloads` folder.
70+
```
71+
"scripts": {
72+
"report:csv": "qa-shadow-report [framework] --csv",
73+
or
74+
"report:csv": "qa-shadow-report [framework] todays-report --csv",
75+
}
76+
```
77+
78+
Then run:
7479

75-
- Monthly summary reports are not currently supported in CSV format.
80+
```
81+
npm run report:csv
82+
```
7683

7784
## Samples
7885

@@ -620,6 +627,6 @@ The demo branch is an excellent resource for understanding how `qa-shadow-report
620627
621628
## Copyright
622629
623-
© 2024 Peter Souza. All rights reserved. Users are granted the freedom to use this code according to their needs and preferences.
630+
© 2025 Peter Souza. All rights reserved. Users are granted the freedom to use this code according to their needs and preferences.
624631
625632
**Note:** Cypress is a registered trademark of Cypress.io, Playwright is a registered trademark of Microsoft Corporation, and Google Sheets is a registered trademark of Google Inc. This application is not officially endorsed or certified by Playwright, Microsoft Corporation, Google Inc., or Cypress.io.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qa-shadow-report",
3-
"version": "1.1.33",
3+
"version": "1.1.34",
44
"bin": {
55
"qa-shadow-report": "./cli.js",
66
"qasr": "./cli.js",

scripts/postInstall.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,15 @@ const createConfigFile = () => {
159159
encoding: 'utf-8',
160160
});
161161
console.info(
162-
chalk.green(
163-
`Config file created at: ${configFileName} in ${projectRootPath}`
164-
)
162+
chalk.blue(`Config file created at: `),
163+
chalk.green(`${projectRootPath}/${configFileName}`)
164+
);
165+
console.info(
166+
chalk.yellow(`Please update the `),
167+
chalk.green(`testData `),
168+
chalk.yellow(`sourcepath in `),
169+
chalk.green(`${configFileName} `),
170+
chalk.yellow(`to match your project's setup.`)
165171
);
166172
}
167173
};

0 commit comments

Comments
 (0)