Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Feat: CLI Wrapper #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
merged-html-report/
dist/
dist/
src/version.ts
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ mergeHTMLReports(inputReportPaths, config)
- TS support
- Uses `jszip` and `yazl` for encoding and decoding zipped content from the `index.html` file.

## Upcoming features
### Using the CLI

- Usage directly on Command line
You can use the CLI by running the following command:

```bash
npx playwright-merge-html-reports <inputReportPath1> <inputReportPath2> [...inputReportPaths]

#### CLI Options
```bash
-o, --output <outputFolderName>: Output folder name (default: 'merged-html-report')
-b, --basePath <outputBasePath>: Output base path (default: current working directory)
--overwrite: Overwrite existing reports (default: false)
--debug: Print debug information (default: false)
```
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/*.test.ts']
};
Loading