|
1 | 1 | name: netlify-plugin-cypress
|
2 | 2 | inputs:
|
3 |
| - # these settings apply during postBuild step |
4 |
| - # when we are testing the site served from the distribution folder |
| 3 | + # these settings apply during onSuccess step |
| 4 | + - name: enable |
| 5 | + description: Run tests against the preview or production deploy |
| 6 | + default: true |
| 7 | + |
5 | 8 | - name: record
|
| 9 | + description: Record test results to Cypress Dashboard |
6 | 10 | default: false
|
| 11 | + |
7 | 12 | - name: spec
|
| 13 | + description: | |
| 14 | + Run just the given spec or spec pattern, |
| 15 | + equivalent to "cypress run --spec ..." |
| 16 | +
|
8 | 17 | - name: group
|
| 18 | + description: | |
| 19 | + If recording to Cypress Dashboard, |
| 20 | + pass the group name with "cypress run --record --group ..." |
| 21 | +
|
9 | 22 | - name: tag
|
10 |
| - - name: spa |
11 |
| - # by default run the tests |
12 |
| - - name: skip |
13 |
| - default: false |
14 |
| - # by default the tests run in Electron |
15 |
| - # but because of the dependency we download Chromium |
16 |
| - # so you can set "browser = electron" |
| 23 | + description: | |
| 24 | + If recording to Cypress Dashboard, |
| 25 | + pass the tag with "cypress run --record --tag ..." |
| 26 | +
|
| 27 | + # Cypress comes with built-in Electron browser |
| 28 | + # and this NPM package installs Chromium browser |
17 | 29 | - name: browser
|
18 |
| - default: electron |
| 30 | + description: Allowed values are chromium, electron |
| 31 | + default: chromium |
19 | 32 |
|
20 | 33 | # tells the plugin how to start the server using custom command
|
21 | 34 | # and waiting for an url, record to the dashboard, tag, etc
|
22 | 35 | # see README "testing the site before build"
|
23 | 36 | - name: preBuild
|
| 37 | + description: Run tests before building the site |
24 | 38 |
|
25 |
| - # you can control how the plugin runs the tests after deploy |
26 |
| - - name: onSuccess |
| 39 | + # tells the plugin to start a static server during postBuild |
| 40 | + # and test just the built static site. |
| 41 | + # see README "testing the site after build" |
| 42 | + # NOTE: does not execute Netlify API redirects or functions |
| 43 | + - name: postBuild |
| 44 | + description: Run tests against the built static site |
0 commit comments