Skip to content

Commit

Permalink
added github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvlaminck committed Nov 16, 2023
1 parent c9703ae commit 99d6ae4
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
/venv/
2 changes: 2 additions & 0 deletions UnitTests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/.pytest_cache
**/__pycache__
7 changes: 7 additions & 0 deletions UnitTests/run_all_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os, pathlib
import pytest

os.chdir(pathlib.Path.cwd())

if __name__ == "__main__":
pytest.main(['-v'])
10 changes: 10 additions & 0 deletions UnitTests/run_all_tests_html.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os, pathlib
import webbrowser

import pytest

os.chdir(pathlib.Path.cwd())

if __name__ == "__main__":
pytest.main(['--cov', '-v', '--cov-report=html'])
webbrowser.open_new_tab(str(pathlib.Path('htmlcov/index.html')))
10 changes: 10 additions & 0 deletions UnitTests/run_single_testfile_html.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os, pathlib
import webbrowser

import pytest

os.chdir(pathlib.Path.cwd())

if __name__ == "__main__":
pytest.main(['--cov', '-v', 'path/to/testfile.py', '--cov-report=html'])
webbrowser.open_new_tab(str(pathlib.Path('htmlcov/index.html')))

0 comments on commit 99d6ae4

Please sign in to comment.