Skip to content

Commit

Permalink
Makefile: use verbose tests
Browse files Browse the repository at this point in the history
We now have the details for each test:
pytest --verbose
============================= test session starts ==============================
platform darwin -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0 -- /Users/rousseau/.virtualenvs/pyscard/bin/python
cachedir: .pytest_cache
rootdir: .../pyscard
configfile: pyproject.toml
collected 51 items

test/test_ATR.py::test_atr1 PASSED                                       [  1%]
test/test_ATR.py::test_atr2 PASSED                                       [  3%]
test/test_ATR.py::test_atr3 PASSED                                       [  5%]
test/test_ATR.py::test_atr4 PASSED                                       [  7%]
test/test_ATR.py::test_atr5 PASSED                                       [  9%]
test/test_ATR.py::test_atr6 PASSED                                       [ 11%]
test/test_ATR.py::test_atr_ts PASSED                                     [ 13%]
test/test_ATR.py::test_atr_get PASSED                                    [ 15%]
test/test_Exceptions.py::test_hresult_value PASSED                       [ 17%]
test/test_Exceptions.py::test_list_readers_exception PASSED              [ 19%]
test/test_Exceptions.py::test_no_readers_exception PASSED                [ 21%]
test/test_Exceptions.py::test_invalid_reader_exception PASSED            [ 23%]
test/test_Exceptions.py::test_card_connection_exception PASSED           [ 25%]
test/test_Exceptions.py::test_hresult PASSED                             [ 27%]
test/test_Exceptions.py::test_wrong_type[arg0] PASSED                    [ 29%]
test/test_Exceptions.py::test_wrong_type[foo] PASSED                     [ 31%]
test/test_Exceptions.py::test_card_request_timeout_exception PASSED      [ 33%]
test/test_Exceptions.py::test_invalid_atr_mask_length_exception PASSED   [ 35%]
test/test_Exceptions.py::test_no_card_exception PASSED                   [ 37%]
test/test_PCSC.py::test_low_level PASSED                                 [ 39%]
test/test_PCSCExceptions.py::test_list_readers_exception PASSED          [ 41%]
test/test_PCSCExceptions.py::test_establish_context_exception PASSED     [ 43%]
test/test_PCSCExceptions.py::test_introduce_reader_exception PASSED      [ 45%]
test/test_PCSCExceptions.py::test_remove_reader_from_group_exception PASSED [ 47%]
test/test_PCSCExceptions.py::test_add_reader_to_group_exception PASSED   [ 49%]
test/test_PCSCExceptions.py::test_release_context_exception PASSED       [ 50%]
test/test_PCSCExceptions.py::test_base_scard_exception PASSED            [ 52%]
test/test_SCardGetErrorMessage.py::test_scard_get_error_message PASSED   [ 54%]
test/test_guid.py::test_roundtrip_string PASSED                          [ 56%]
test/test_guid.py::test_roundtrip_list_of_ints PASSED                    [ 58%]
test/test_readergroups.py::test_reader_groups_acts_like_a_singleton PASSED [ 60%]
test/test_readergroups.py::test_reader_groups_method_calls PASSED        [ 62%]
test/test_readergroups.py::test_reader_groups_is_a_singleton XFAIL (...) [ 64%]
test/test_readergroups.py::test_demonstrate_initlist_values_may_be_silently_ignored XFAIL [ 66%]
test/test_readergroups.py::test_demonstrate_adding_is_impossible PASSED  [ 68%]
test/test_readergroups.py::test_demonstrate_removing_is_impossible PASSED [ 70%]
test/test_readergroups.py::test_demonstrate_getting_is_impossible PASSED [ 72%]
test/test_ulist.py::test_demonstrate_ulist_cannot_be_instantiated PASSED [ 74%]
test/test_ulist.py::test_demonstrate_order_is_not_respected XFAIL (o...) [ 76%]
test/test_ulist.py::test_demonstrate_non_unique_behavior XFAIL (not ...) [ 78%]
test/test_ulist.py::test_ulist_methods PASSED                            [ 80%]
test/test_util.py::test_to_bytes PASSED                                  [ 82%]
test/test_util.py::test_padd PASSED                                      [ 84%]
test/test_util.py::test_to_ascii_bytes PASSED                            [ 86%]
test/test_util.py::test_to_ascii_string PASSED                           [ 88%]
test/test_util.py::test_to_gsm3_38_bytes PASSED                          [ 90%]
test/test_util.py::test_to_hex_string PASSED                             [ 92%]
test/test_util.py::test_hex_list_to_bin_string PASSED                    [ 94%]
test/test_util.py::test_bin_string_to_hex_list PASSED                    [ 96%]
test/test_util.py::test_hl2bs PASSED                                     [ 98%]
test/test_util.py::test_bs2hl PASSED                                     [100%]

======================== 47 passed, 4 xfailed in 0.17s =========================
  • Loading branch information
LudovicRousseau committed Oct 2, 2024
1 parent 0c2c269 commit b82bfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pypi: clean
python3 -m twine upload dist/*

test:
pytest
pytest --verbose

coverage:
$(COVERAGE) erase
Expand Down

0 comments on commit b82bfed

Please sign in to comment.