From 60e97eb8711eee9a682bc58820ca3e218d0baa56 Mon Sep 17 00:00:00 2001 From: Annie Tallund Date: Wed, 22 Nov 2023 16:08:12 +0100 Subject: MLIA-136 Add flaky dependency for unstable tests - https://github.com/box/flaky - Is set to re-run tests marked with @flaky - Provides a report on failures - Add flaky guard to tests/test_nn_tensorflow_optimizations_clustering.py Signed-off-by: Annie Tallund Change-Id: I6795fd8bb2c38be6513f3689c3eeb805e7976add --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 94c3b69..6e51df0 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ description = Run the unit tests. deps = pytest==7.4.0 commands = - pytest {posargs:tests/} + pytest --no-success-flaky-report {posargs:tests/} [testenv:{e2e,e2e_setup}] description = Run the end-to-end tests. @@ -37,7 +37,7 @@ deps = {[testenv:test]deps} pytest-cov==4.1.0 commands = - pytest --cov=mlia --cov-report term-missing --cov-fail-under=95 tests/ + pytest --cov=mlia --cov-report term-missing --cov-fail-under=95 --no-success-flaky-report tests/ [testenv:{lint,lint_setup}] description = Run and setup the pre-commit hooks. -- cgit v1.2.1