Skip to content

Commit

Permalink
[CSR-595] Have the possibility to change the path for saving the repo…
Browse files Browse the repository at this point in the history
…rts (#45)

* feat: add dumpDir plugin option

* fix: run the formatter

* chore: ..

* chore: add pretty-quick

---------

Co-authored-by: Andrew Goldis <[email protected]>
  • Loading branch information
vCaisim and agoldis authored Jun 26, 2023
1 parent d2d2b1e commit 93ea53c
Show file tree
Hide file tree
Showing 4 changed files with 1,344 additions and 4,136 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Analyze the information using the debugger web app.
### Chrome / Chromium

```sh
npx cypress run --chrome
npx cypress run --browser chrome
```

### Electron
Expand Down Expand Up @@ -105,6 +105,7 @@ debuggerPlugin(on: Cypress.PluginEvents, options?: PluginOptions): void
- `options` - [`PluginOptions`](./packages/plugin/src/types.ts):
- `meta: Record<string, unknown>`: an optional field that is added to the `TestExecutionResult` as `pluginMeta`
- `callback: (path: string, data: TestExecutionResult`: a callback function that will be called after each test
- `targetDirectory: string`: the path to the reports directory. Default is `dump`

Example:

Expand All @@ -122,6 +123,7 @@ module.exports = defineConfig({
callback: (path, data) => {
console.log({ path, data });
},
targetDirectory: 'cypress/e2e/reports',
});
return config;
},
Expand Down
Loading

0 comments on commit 93ea53c

Please sign in to comment.