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

[Test suite] Restore support for ignored tests in CI #676

Open
fermino opened this issue Dec 9, 2024 · 0 comments
Open

[Test suite] Restore support for ignored tests in CI #676

fermino opened this issue Dec 9, 2024 · 0 comments

Comments

@fermino
Copy link
Collaborator

fermino commented Dec 9, 2024

After the initial "migration" to pytest in #675 there are some tests being ignored due to lack of support from pytest.

I will look into that so that the CI workflow can cover the most cases possible. This issue is intented to keep track of the progress.

tests/test_formatters/test_py.py:19
  tests/test_formatters/test_py.py:19: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_paranoia will be ignored
    @parameterized(["python2", "python3"])

tests/test_formatters/test_sh.py:25
  tests/test_formatters/test_sh.py:25: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_basic will be ignored
    @with_setup(usual_setup_func, usual_teardown_func)

tests/test_formatters/test_sh.py:75
  tests/test_formatters/test_sh.py:75: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_paranoia will be ignored
    @parameterized([("sh", ), ("bash", ), ("dash", )])

tests/test_formatters/test_sh.py:144
  tests/test_formatters/test_sh.py:144: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_hardlink_duplicate_directories will be ignored
    @parameterized([("sh", ), ("bash", ), ("dash", )])

tests/test_formatters/test_sh.py:178
  tests/test_formatters/test_sh.py:178: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_remove_empty_dirs will be ignored
    @parameterized([

tests/test_formatters/test_sh.py:211
  tests/test_formatters/test_sh.py:211: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_remove_empty_dirs_with_dupe_dirs will be ignored
    @parameterized([

tests/test_formatters/test_sh.py:244
  tests/test_formatters/test_sh.py:244: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_cleanup_emptydirs will be ignored
    @with_setup(usual_setup_func, usual_teardown_func)

tests/test_formatters/test_sh.py:275
  tests/test_formatters/test_sh.py:275: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_keep_parent_timestamps will be ignored
    @with_setup(usual_setup_func, usual_teardown_func)

tests/test_mains/test_hash.py:32
  tests/test_mains/test_hash.py:32: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_hash_function will be ignored
    @parameterized([

tests/test_options/test_cache.py:79
  tests/test_options/test_cache.py:79: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_xattr_detail will be ignored
    @parameterized([("", ), ("-D", )])

tests/test_options/test_cache.py:168
  tests/test_options/test_cache.py:168: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_clamp_xattr_false_negative will be ignored
    @parameterized([('-q 1',), ('-Q 1',), ('-q 50%',), ('-Q 50%',)])

tests/test_options/test_cache.py:190
  tests/test_options/test_cache.py:190: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_clamp_xattr_false_positive will be ignored
    @parameterized([('-q 2',), ('-Q 1',), ('-q 70%',), ('-Q 50%',)])

tests/test_options/test_merge_directories.py:15
  tests/test_options/test_merge_directories.py:15: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_simple will be ignored
    @parameterized([((),), (('--write-unfinished',),)])

tests/test_options/test_size.py:67
  /home/runner/work/rmlint/rmlint/tests/test_options/test_size.py:67: DeprecationWarning: invalid escape sequence '\-'
    trigger('--size \-\-17')

tests/test_options/test_stdin.py:86
  tests/test_options/test_stdin.py:86: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_stdin_empty will be ignored
    @parameterized([('-',), ('-0',), ('-D', '-')])
@fermino fermino changed the title [Test suite] Restore support for ignored tests [Test suite] Restore support for ignored tests in CI Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant