Skip to content

Commit 93ea53c

Browse files
vCaisimagoldis
andauthored
[CSR-595] Have the possibility to change the path for saving the reports (#45)
* feat: add dumpDir plugin option * fix: run the formatter * chore: .. * chore: add pretty-quick --------- Co-authored-by: Andrew Goldis <agoldis@gmail.com>
1 parent d2d2b1e commit 93ea53c

File tree

4 files changed

+1344
-4136
lines changed

4 files changed

+1344
-4136
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Analyze the information using the debugger web app.
7676
### Chrome / Chromium
7777

7878
```sh
79-
npx cypress run --chrome
79+
npx cypress run --browser chrome
8080
```
8181

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

109110
Example:
110111

@@ -122,6 +123,7 @@ module.exports = defineConfig({
122123
callback: (path, data) => {
123124
console.log({ path, data });
124125
},
126+
targetDirectory: 'cypress/e2e/reports',
125127
});
126128
return config;
127129
},

0 commit comments

Comments
 (0)