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

Move to PyTest for running tests #192

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
yaml-parser: ['', 'ruamel']
include:
- python-version: 2.7
coverage: "--with-coverage --cover-package=rebench"
coverage: "--cov=rebench"
exclude:
- python-version: 2.7
yaml-parser: ruamel
Expand All @@ -31,23 +31,23 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install nose
run: pip install nose
- name: Install PyTest
run: pip install pytest

- name: Install ruamel.yaml
run: pip install ruamel.yaml
if: matrix.yaml-parser == 'ruamel'

- name: Install coverage and coveralls
run: pip install coverage coveralls
run: pip install pytest-cov coveralls
if: matrix.coverage

- name: Install ReBench dependencies
run: pip install .

- name: Run tests
run: |
nosetests ${{ matrix.coverage }}
pytest ${{ matrix.coverage }}
(cd rebench && rebench ../rebench.conf e:TestRunner2)

- name: Install and run pylint
Expand Down
1 change: 1 addition & 0 deletions rebench/interop/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


class TestAdapter(GaugeAdapter):
__test__ = False # This is not a test class

test_data = [45872, 45871, 45868, 45869, 45873,
45865, 45869, 45874, 45863, 45873,
Expand Down
1 change: 1 addition & 0 deletions rebench/interop/test_vm_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TestExecutorAdapter(GaugeAdapter):
in test/test.conf
"""

__test__ = False # This is not a test class
re_time = re.compile(r"RESULT-(\w+):\s*(\d+\.\d+)")

def __init__(self, include_faulty, executor):
Expand Down
1 change: 1 addition & 0 deletions rebench/tests/features/issue_19_one_data_point_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@


class TestReporter(Reporter):
__test__ = False # This is not a test class

def __init__(self, test_case):
super(TestReporter, self).__init__()
Expand Down
1 change: 1 addition & 0 deletions rebench/tests/persistence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class TestPersistence(object):
__test__ = False # This is not a test class

def __init__(self):
self._data_points = []
Expand Down