Skip to content

Commit

Permalink
Add --failfast option when running unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Aug 8, 2024
1 parent 288ec96 commit 3df924a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deps =
yourdfpy >=0.0.56
commands =
coverage erase
coverage run -m unittest tests
coverage run -m unittest tests --failfast
coverage report --include="robot_descriptions/**"

[testenv:lint]
Expand Down Expand Up @@ -50,37 +50,37 @@ changedir = {toxinidir}/tests/loaders
deps =
idyntree >= 8.0.0
commands =
python -m unittest test_idyntree.py
python -m unittest test_idyntree.py --failfast

[testenv:loader-mujoco]
changedir = {toxinidir}/tests/loaders
deps =
mujoco >=2.3.5
commands =
python -m unittest test_mujoco.py
python -m unittest test_mujoco.py --failfast

[testenv:loader-pinocchio]
changedir = {toxinidir}/tests/loaders
deps =
pin >=2.6.14
commands =
python -m unittest test_pinocchio.py
python -m unittest test_pinocchio.py --failfast

[testenv:loader-pybullet]
changedir = {toxinidir}/tests/loaders
deps =
numpy >=1.23.4,<2
pybullet >=3.2.5
commands =
python -m unittest test_pybullet.py
python -m unittest test_pybullet.py --failfast

[testenv:loader-robomeshcat]
changedir = {toxinidir}/tests/loaders
deps =
pycollada >=0.6
robomeshcat >= 1.0.4
commands =
python -m unittest test_robomeshcat.py
python -m unittest test_robomeshcat.py --failfast

[testenv:loader-yourdfpy]
changedir = {toxinidir}/tests/loaders
Expand All @@ -90,7 +90,7 @@ deps =
trimesh ~=3.16.0
yourdfpy >=0.0.56
commands =
python -m unittest test_yourdfpy.py
python -m unittest test_yourdfpy.py --failfast

[pylint]
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 comments on commit 3df924a

Please sign in to comment.