Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action to run pytest #359

Closed
wants to merge 6 commits into from
Closed

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Oct 18, 2023

Related to

Some contributors care about pytest and others do not.

This GitHub Action allows contributors to see which tests pass and which ones fail.
They can use this visibility to propose fixes to reduce the 10 --ignored files. There are currently only 35 tests that fail.

pip install pytest testscenarios # Not updated since 2015

pytest --ignore=testtools/tests/matchers/test_basic.py \
       --ignore=testtools/tests/matchers/test_const.py \
       --ignore=testtools/tests/matchers/test_datastructures.py \
       --ignore=testtools/tests/matchers/test_dict.py \
       --ignore=testtools/tests/matchers/test_doctest.py \
       --ignore=testtools/tests/matchers/test_exception.py \
       --ignore=testtools/tests/matchers/test_higherorder.py \
       --ignore=testtools/tests/matchers/test_warnings.py \
       --ignore=testtools/tests/test_testcase.py \
       --ignore=testtools/tests/test_testresult.py .

============================= test session starts ==============================
platform linux -- Python 3.11.6, pytest-7.4.2, pluggy-1.3.0
rootdir: /home/runner/work/testtools/testtools
collected 308 items

testtools/tests/test_assert_that.py .............                        [  4%]
testtools/tests/test_compat.py .....................                     [ 11%]
testtools/tests/test_content.py ......................................   [ 23%]
testtools/tests/test_content_type.py .........                           [ 26%]
testtools/tests/test_distutilscmd.py ...                                 [ 27%]
testtools/tests/test_fixturesupport.py ........                          [ 29%]
testtools/tests/test_helpers.py ...                                      [ 30%]
testtools/tests/test_monkey.py ..............                            [ 35%]
testtools/tests/test_run.py .s..........                                 [ 39%]
testtools/tests/test_runtest.py ........................                 [ 47%]
testtools/tests/test_tags.py ..........                                  [ 50%]
testtools/tests/test_testsuite.py .................                      [ 55%]
testtools/tests/test_with_with.py ..........                             [ 59%]
testtools/tests/matchers/test_filesystem.py ............................ [ 68%]
                                                                         [ 68%]
testtools/tests/matchers/test_impl.py ...........                        [ 71%]
testtools/tests/twistedsupport/test_deferred.py sss.                     [ 73%]
testtools/tests/twistedsupport/test_matchers.py sssssssssssss.           [ 77%]
testtools/tests/twistedsupport/test_runtest.py sssssssssssssssssssssssss [ 85%]
ssssssssssssssss.                                                        [ 91%]
testtools/tests/twistedsupport/test_spinner.py sssssssssssssssssssssssss [ 99%]
s.                                                                       [100%]

================= 224 passed, 84 skipped, 27 warnings in 1.45s =================

@cclauss cclauss marked this pull request as ready for review October 18, 2023 22:21
@cclauss cclauss changed the title DRAFT: GitHub Action to run pytest GitHub Action to run pytest Oct 19, 2023
@cclauss cclauss closed this Aug 13, 2024
@cclauss cclauss deleted the patch-1 branch August 13, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant