Skip to content

Commit 30cfd62

Browse files
committed
update recommended test
1 parent 2a36fb8 commit 30cfd62

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/recommended/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# recommended test
2+
3+
These tests run:
4+
- [ ] before the build
5+
- [x] after the build
6+
- [ ] on deploy success

tests/recommended/netlify.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,15 @@ TERM = "xterm"
1313
# local Cypress plugin will test our site after it is built
1414
# in production, please use: package = "netlify-plugin-cypress"
1515
package = "../../"
16+
17+
# this is a testing situation
18+
# in the real system we recommend running tests post deploy
19+
# by default and enable preBuild and postBuild if needed
20+
21+
# do not run tests after deploy (testing)
22+
[plugins.inputs]
23+
enable = false
24+
25+
# run tests postBuild
26+
[plugins.inputs.postBuild]
27+
enable = true

0 commit comments

Comments
 (0)