Skip to content

Commit 8c6e927

Browse files
committed
Add pytest-rerunsfailures
1 parent 070d718 commit 8c6e927

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

components/dash-core-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",
2222
"prepublishOnly": "rm -rf lib && babel src --out-dir lib --copy-files && rm -rf lib/jl/ lib/*.jl",
2323
"test": "run-s -c lint test:intg test:pyimport",
24-
"test:intg": "pytest --nopercyfinalize --headless tests/integration",
24+
"test:intg": "pytest --nopercyfinalize --headless tests/integration --reruns 3",
2525
"test:pyimport": "python -m unittest tests/test_dash_import.py",
2626
"prebuild:js": "cp node_modules/plotly.js-dist-min/plotly.min.js dash_core_components_base/plotly.min.js && cp node_modules/mathjax/es5/tex-svg.js dash_core_components_base/mathjax.js",
2727
"build:js": "webpack --mode production",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"private::test.R.deploy-components": "npm run private::test.setup-components && cd \\@plotly/dash-test-components && sudo R CMD INSTALL .",
2222
"private::test.R.deploy-nested": "npm run private::test.setup-nested && cd \\@plotly/dash-generator-test-component-nested && sudo R CMD INSTALL .",
2323
"private::test.R.deploy-standard": "npm run private::test.setup-standard && cd \\@plotly/dash-generator-test-component-standard && sudo R CMD INSTALL .",
24-
"private::test.unit-dash": "pytest tests/unit",
24+
"private::test.unit-dash": "pytest tests/unit --reruns 3",
2525
"private::test.unit-renderer": "cd dash/dash-renderer && npm run test",
26-
"private::test.integration-dash": "TESTFILES=$(circleci tests glob \"tests/integration/**/test_*.py\" | circleci tests split --split-by=timings) && pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml ${TESTFILES}",
26+
"private::test.integration-dash": "TESTFILES=$(circleci tests glob \"tests/integration/**/test_*.py\" | circleci tests split --split-by=timings) && pytest --headless --nopercyfinalize --junitxml=test-reports/junit_intg.xml ${TESTFILES} --reruns 3",
2727
"private::test.integration-dash-import": "cd tests/integration/dash && python dash_import_test.py",
2828
"build": "run-s private::build.*",
2929
"build.sequential": "npm run private::build.renderer && npm run private::build.components -- --concurrency 1",

requires-ci.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ pytest-mock==3.2.0
2323
pytest-sugar==0.9.4
2424
xlrd>=2.0.1;python_version>="3.8"
2525
xlrd<2;python_version<"3.8"
26+
pytest-rerunfailures

0 commit comments

Comments
 (0)