Last active
March 19, 2026 02:31
-
-
Save jeanmidevacc/26e22386f5788e744001e70fdd1ac5fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to run all the tests in the test folder | |
| pytest | |
| > tests/integration/test_agent_play.py ........ [ 3%] | |
| tests/integration/test_game_flow.py ...................... [ 12%] | |
| tests/integration/test_logging.py ....... [ 15%] | |
| tests/unit/agents/test_base.py ....... [ 18%] | |
| tests/unit/dungeon/test_card_pool.py ......................... [ 28%] | |
| tests/unit/game/test_actions.py ................ [ 34%] | |
| tests/unit/game/test_state.py ....................... [ 44%] | |
| tests/unit/logging/test_events.py ......... [ 48%] | |
| tests/unit/logging/test_formatters.py ........... [ 52%] | |
| tests/unit/logging/test_state_serializer.py ................... [ 60%] | |
| tests/unit/models/test_card.py ......... [ 64%] | |
| tests/unit/models/test_deck.py ................. [ 71%] | |
| tests/unit/models/test_player.py ........................ [ 81%] | |
| tests/unit/models/test_room.py ...................... [ 90%] | |
| tests/unit/models/test_weapon.py ........................ [100%] | |
| ======================================================================================= 243 passed in 1.46s ======================================================================================= | |
| # Code coverage | |
| pytest --cov=src/pyscoundrel | |
| > tests/integration/test_agent_play.py ........ [ 3%] | |
| tests/integration/test_game_flow.py ...................... [ 12%] | |
| tests/integration/test_logging.py ....... [ 15%] | |
| tests/unit/agents/test_base.py ....... [ 18%] | |
| tests/unit/dungeon/test_card_pool.py ......................... [ 28%] | |
| tests/unit/game/test_actions.py ................ [ 34%] | |
| tests/unit/game/test_state.py ....................... [ 44%] | |
| tests/unit/logging/test_events.py ......... [ 48%] | |
| tests/unit/logging/test_formatters.py ........... [ 52%] | |
| tests/unit/logging/test_state_serializer.py ................... [ 60%] | |
| tests/unit/models/test_card.py ......... [ 64%] | |
| tests/unit/models/test_deck.py ................. [ 71%] | |
| tests/unit/models/test_player.py ........................ [ 81%] | |
| tests/unit/models/test_room.py ...................... [ 90%] | |
| tests/unit/models/test_weapon.py ........................ [100%] | |
| ========================================================================================= tests coverage ========================================================================================== | |
| _________________________________________________________________________ coverage: platform linux, python 3.11.5-final-0 _________________________________________________________________________ | |
| Name Stmts Miss Cover | |
| ----------------------------------------------------------------- | |
| src/pyscoundrel/__init__.py 9 0 100% | |
| src/pyscoundrel/agents/__init__.py 2 0 100% | |
| src/pyscoundrel/agents/base.py 9 2 78% | |
| src/pyscoundrel/dungeon/__init__.py 2 0 100% | |
| src/pyscoundrel/dungeon/card_pool.py 66 2 97% | |
| src/pyscoundrel/game/__init__.py 4 0 100% | |
| src/pyscoundrel/game/actions.py 40 0 100% | |
| src/pyscoundrel/game/engine.py 127 9 93% | |
| src/pyscoundrel/game/state.py 65 3 95% | |
| src/pyscoundrel/logging/__init__.py 4 0 100% | |
| src/pyscoundrel/logging/events.py 17 0 100% | |
| src/pyscoundrel/logging/formatters.py 26 0 100% | |
| src/pyscoundrel/logging/logger.py 33 2 94% | |
| src/pyscoundrel/logging/state_serializer.py 17 0 100% | |
| src/pyscoundrel/models/__init__.py 6 0 100% | |
| src/pyscoundrel/models/card.py 25 0 100% | |
| src/pyscoundrel/models/deck.py 47 1 98% | |
| src/pyscoundrel/models/player.py 35 0 100% | |
| src/pyscoundrel/models/room.py 49 0 100% | |
| src/pyscoundrel/models/weapon.py 43 0 100% | |
| ----------------------------------------------------------------- | |
| TOTAL 626 19 97% | |
| ======================================================================================= 243 passed in 4.08s ===================================================================================== | |
| # Define threshold of success of the suite of tests | |
| pytest --cov=src/pyscoundrel --cov-fail-under=99 | |
| > same logs at the beginning nexcept | |
| ERROR: Coverage failure: total of 97 is less than fail-under=99 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment