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
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8294d5f
Create parallel testsuite using pytest
schroeding May 9, 2024
898cf57
Exclude pytest_* files from ruff wildcard import warning
schroeding May 9, 2024
a4cc9cb
Duplicated test_result.py
schroeding May 9, 2024
f72b39d
Transitioned test_result to pytest
schroeding May 9, 2024
9dd880e
Duplicated test_analyze_run_result.py
schroeding May 9, 2024
569b6d8
Transitioned test_analyze_run_result to pytest
schroeding May 9, 2024
469ac3c
Duplicated pytest_benchmark_definition.py
schroeding May 9, 2024
38daff1
Add dependency for pytest-mock
schroeding May 10, 2024
c70b08e
Transitioned test_benchmark_definition to pytest
schroeding May 10, 2024
6ede849
Duplicated test_core_assignment.py
schroeding May 10, 2024
715f777
Transitioned test_core_assignment to pytest
schroeding May 14, 2024
68396cc
Duplicated test_cgroups.py
schroeding May 15, 2024
22a7998
Transitioned test_cgroups to pytest
schroeding May 16, 2024
de9f2a1
Add pytest testsuite to Gitlab CI
schroeding May 17, 2024
e5f2f3c
... and actually execute it with different Python versions
schroeding May 17, 2024
890fa5d
Duplicated test_pqos.py
schroeding May 21, 2024
34abf3b
Transitioned test_pqos to pytest
schroeding May 21, 2024
d6eec07
Duplicated test_runexecutor.py
schroeding May 23, 2024
e3f291b
Reverting all changes on branch
schroeding Jun 4, 2024
5952499
Add correct globs to pytest
schroeding Jun 9, 2024
57f8852
Move nose to separate testsuite
schroeding Jun 9, 2024
2a20063
Ported test_result, test_runexecutor and test_util to pytest
schroeding Jun 10, 2024
e2c614d
Ported test_analyze_run_result, test_benchmark_definition, test_core_…
schroeding Jun 16, 2024
f417ae5
Ported test_cgroups, working for 3.9
schroeding Jun 16, 2024
5ed6c2e
reformatted test
schroeding Jun 16, 2024
51ae6a3
reverted test_cgroups
schroeding Jun 16, 2024
3ce2480
ported test_integration
schroeding Jun 24, 2024
72647bf
ported tablegenerator integration test
schroeding Jun 24, 2024
c78717f
changed code under test: added additional assertions, copying context…
schroeding Jun 24, 2024
f6bec7d
ported test_cgroups
schroeding Jun 30, 2024
b9e0086
Removed nose dependencies
schroeding Jun 30, 2024
2307f4a
removed unnecessary imports
schroeding Jul 13, 2024
373b379
... all redundant imports
schroeding Jul 13, 2024
bcd7c96
only test the table generator on appveyor
schroeding Jul 13, 2024
795d824
Merge remote-tracking branch 'origin/main' into pytest-testsuite
schroeding Jul 13, 2024
89a86b1
ported tools/test.py
schroeding Jul 21, 2024
54ec0d3
removed deprecated option for setup.py tests
schroeding Jul 21, 2024
67eb186
fixed formatting
schroeding Jul 21, 2024
674f7e0
removed tautological assertion, clarified comment
schroeding Jul 27, 2024
203014f
fixed wrong globs for pytest
schroeding Jul 27, 2024
f33c3bd
fixed issue 991, using local context instead of modifying the default…
schroeding Jul 27, 2024
e99ecc9
moved config for pytest to pyproject.toml
schroeding Jul 28, 2024
49f9f92
added build directory, made docker path more precise
schroeding Aug 2, 2024
cb3ce39
modified additional test
schroeding Aug 2, 2024
7b94907
fixed comment, use new context instead of setting the thread context,…
schroeding Aug 3, 2024
64a4e51
added local context to method which also depends of correct rounding …
schroeding Aug 5, 2024
97a5085
Merge remote-tracking branch 'origin/main' into pytest-testsuite
schroeding Aug 5, 2024
a77a2e8
add trailing space
schroeding Aug 5, 2024
36c605b
purge nose from all files (except release.sh)
schroeding Aug 5, 2024
1842b29
removed redundant import
schroeding Aug 5, 2024
4eb5da3
removed nose from release.sh, replaced it w/ pytest
schroeding Aug 5, 2024
4b11194
Update build dependency of Debian package
PhilippWendler Aug 6, 2024
d4ee4a6
Add some documentation on how to run our tests
PhilippWendler Aug 6, 2024
959f89d
Add pytest to our container images
PhilippWendler Aug 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions release.sh
PhilippWendler marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ python3 -m venv "$TEMP3"
. "$TEMP3/bin/activate"
git clone "file://$DIR" "$TEMP3/benchexec"
pushd "$TEMP3/benchexec"
# Avoid the wheel on PyPi for nose, it does not work on Python 3.10.
# Local building from source works, but only with setuptools<58.
pip install "setuptools < 58"
pip install nose --no-binary :all:
pip install build
pip install -e ".[dev]"
python -m nose
python -m pytest
python -m build
popd
deactivate
Expand Down