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

Use Pytest for test execution #1043

Merged
merged 54 commits into from
Aug 6, 2024
Merged

Use Pytest for test execution #1043

merged 54 commits into from
Aug 6, 2024

Commits on May 9, 2024

  1. Create parallel testsuite using pytest

    Adds a dependency for pytest and configurates it to search for files following the pytest_* scheme.
    
    After the transition to pytest is completed and the nose-based testsuite can be safely removed, it is probably a good idea to rename the pytest-based testsuite back to the current test_* scheme.
    
    While having both testsuites at the same time causes temporary code duplication, it makes the transition process easier and allows quick three-way diffs between the main branch and the, on this branch, unmodified tests (via git diff) and the changes specific to pytest (via regular diff on this branch).
    schroeding committed May 9, 2024
    Configuration menu
    Copy the full SHA
    8294d5f View commit details
    Browse the repository at this point in the history
  2. Exclude pytest_* files from ruff wildcard import warning

    The same already applies to the existing nose-based testsuite - using wildcard imports shortens test code significantly
    schroeding committed May 9, 2024
    Configuration menu
    Copy the full SHA
    898cf57 View commit details
    Browse the repository at this point in the history
  3. Duplicated test_result.py

    schroeding committed May 9, 2024
    Configuration menu
    Copy the full SHA
    a4cc9cb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f72b39d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9dd880e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    569b6d8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    469ac3c View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Configuration menu
    Copy the full SHA
    38daff1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c70b08e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ede849 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Configuration menu
    Copy the full SHA
    715f777 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Duplicated test_cgroups.py

    schroeding committed May 15, 2024
    Configuration menu
    Copy the full SHA
    68396cc View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Configuration menu
    Copy the full SHA
    22a7998 View commit details
    Browse the repository at this point in the history
  2. Add pytest testsuite to Gitlab CI

    Saves the coverage of both testsuites, to allow us to compare them (and make sure the nose-based testsuite hasn't had a regression for some reason)
    schroeding committed May 17, 2024
    Configuration menu
    Copy the full SHA
    de9f2a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e5f2f3c View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Duplicated test_pqos.py

    schroeding committed May 21, 2024
    Configuration menu
    Copy the full SHA
    890fa5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34abf3b View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    d6eec07 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. Configuration menu
    Copy the full SHA
    e3f291b View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2024

  1. Configuration menu
    Copy the full SHA
    5952499 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57f8852 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. Configuration menu
    Copy the full SHA
    2a20063 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Ported test_analyze_run_result, test_benchmark_definition, test_core_…

    …assignment, test_pqos to pytest
    schroeding committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    e2c614d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f417ae5 View commit details
    Browse the repository at this point in the history
  3. reformatted test

    schroeding committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    5ed6c2e View commit details
    Browse the repository at this point in the history
  4. reverted test_cgroups

    schroeding committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    51ae6a3 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. ported test_integration

    schroeding committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    3ce2480 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72647bf View commit details
    Browse the repository at this point in the history
  3. changed code under test: added additional assertions, copying context…

    … from default context
    
    The current implementation fails under pytest, as the context (as given by getcontext())
    is already derived from the DefaultContext *before* we change the rounding to our
    preferred value. Thus, the assertion correctly fails, as the first process still has
    the default ROUND_HALF_EVEN value, even though all decending processes do possess the
    correct value of ROUND_HALF_UP.
    
    As a solution, we can copy the DefaultContext as the context of the initial thread.
    As the assertion afterwards becomes very obviously true, additional assertions are added,
    to check if the individual processes have the correct rounding.
    schroeding committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    c78717f View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. ported test_cgroups

    schroeding committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    f6bec7d View commit details
    Browse the repository at this point in the history
  2. Removed nose dependencies

    schroeding committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    b9e0086 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. Configuration menu
    Copy the full SHA
    2307f4a View commit details
    Browse the repository at this point in the history
  2. ... all redundant imports

    schroeding committed Jul 13, 2024
    Configuration menu
    Copy the full SHA
    373b379 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bcd7c96 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    795d824 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2024

  1. ported tools/test.py

    schroeding committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    89a86b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54ec0d3 View commit details
    Browse the repository at this point in the history
  3. fixed formatting

    schroeding committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    67eb186 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2024

  1. Configuration menu
    Copy the full SHA
    674f7e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    203014f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f33c3bd View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. Configuration menu
    Copy the full SHA
    e99ecc9 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Configuration menu
    Copy the full SHA
    49f9f92 View commit details
    Browse the repository at this point in the history
  2. modified additional test

    now requires no assertion to be violated when the rounding mode is modified for the thread,
    which should always be the case as long as local context is used (which sets the rounding mode
    independently of the rounding mode of the actual, global decimal context of the thread
    schroeding committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    cb3ce39 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. fixed comment, use new context instead of setting the thread context,…

    … extend localcontext to additonal methods
    schroeding committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    7b94907 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. added local context to method which also depends of correct rounding …

    …mode, formerly set for the whole thread
    schroeding committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    64a4e51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97a5085 View commit details
    Browse the repository at this point in the history
  3. add trailing space

    schroeding committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    a77a2e8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    36c605b View commit details
    Browse the repository at this point in the history
  5. removed redundant import

    schroeding committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    1842b29 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4eb5da3 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Configuration menu
    Copy the full SHA
    4b11194 View commit details
    Browse the repository at this point in the history
  2. Add some documentation on how to run our tests

    Since "setup.py test" is no longer possible,
    we need to tell people.
    PhilippWendler committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    d4ee4a6 View commit details
    Browse the repository at this point in the history
  3. Add pytest to our container images

    This fastens up CI jobs by not having to install it on every job.
    PhilippWendler committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    959f89d View commit details
    Browse the repository at this point in the history