Skip to content

Commit 8824a86

Browse files
Add --failfast option when running unit tests
1 parent a1fc640 commit 8824a86

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tox.ini

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ deps =
2121
yourdfpy >=0.0.56
2222
commands =
2323
coverage erase
24-
coverage run -m unittest tests
24+
coverage run -m unittest tests --failfast
2525
coverage report --include="robot_descriptions/**"
2626

2727
[testenv:lint]
@@ -50,37 +50,37 @@ changedir = {toxinidir}/tests/loaders
5050
deps =
5151
idyntree >= 8.0.0
5252
commands =
53-
python -m unittest test_idyntree.py
53+
python -m unittest test_idyntree.py --failfast
5454

5555
[testenv:loader-mujoco]
5656
changedir = {toxinidir}/tests/loaders
5757
deps =
5858
mujoco >=2.3.5
5959
commands =
60-
python -m unittest test_mujoco.py
60+
python -m unittest test_mujoco.py --failfast
6161

6262
[testenv:loader-pinocchio]
6363
changedir = {toxinidir}/tests/loaders
6464
deps =
6565
pin >=2.6.14
6666
commands =
67-
python -m unittest test_pinocchio.py
67+
python -m unittest test_pinocchio.py --failfast
6868

6969
[testenv:loader-pybullet]
7070
changedir = {toxinidir}/tests/loaders
7171
deps =
7272
numpy >=1.23.4,<2
7373
pybullet >=3.2.5
7474
commands =
75-
python -m unittest test_pybullet.py
75+
python -m unittest test_pybullet.py --failfast
7676

7777
[testenv:loader-robomeshcat]
7878
changedir = {toxinidir}/tests/loaders
7979
deps =
8080
pycollada >=0.6
8181
robomeshcat >= 1.0.4
8282
commands =
83-
python -m unittest test_robomeshcat.py
83+
python -m unittest test_robomeshcat.py --failfast
8484

8585
[testenv:loader-yourdfpy]
8686
changedir = {toxinidir}/tests/loaders
@@ -90,7 +90,7 @@ deps =
9090
trimesh ~=3.16.0
9191
yourdfpy >=0.0.56
9292
commands =
93-
python -m unittest test_yourdfpy.py
93+
python -m unittest test_yourdfpy.py --failfast
9494

9595
[pylint]
9696
generated-members=mujoco.MjModel, pin.JointModelFreeFlyer, pin.JointModelPX, pin.JointModelPY, pin.JointModelPZ, pin.JointModelPlanar, pin.JointModelRX, pin.JointModelRY, pin.JointModelRZ, pin.JointModelSpherical, pin.JointModelSphericalZYX, pin.JointModelTranslation, pin.Model, pybullet.loadURDF, pybullet.setAdditionalSearchPath

0 commit comments

Comments
 (0)