-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMPROVEMENT: increased test coverage
- Loading branch information
1 parent
9fff6b1
commit 80c1c92
Showing
3 changed files
with
124 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,23 @@ | |
# | ||
# SPDX-FileCopyrightText: 2024 Amilcar do Carmo Lucas <[email protected]> | ||
# | ||
#SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
PYTHONPATH=../MethodicConfigurator python3 -m coverage run -m unittest annotate_params_test.py | ||
python3 -m coverage html | ||
REQUIRED_PKGS=("coverage" "mock" "defusedxml") | ||
|
||
is_installed() { | ||
pip show "$1" > /dev/null 2>&1 | ||
} | ||
|
||
for pkg in "${REQUIRED_PKGS[@]}"; do | ||
if ! is_installed "$pkg"; then | ||
echo "Installing $pkg..." | ||
pip install "$pkg" | ||
else | ||
echo "$pkg is already installed." | ||
fi | ||
done | ||
|
||
PYTHONPATH=../MethodicConfigurator python -m coverage run -m unittest annotate_params_test.py | ||
python -m coverage html | ||
firefox htmlcov/annotate_params_py.html |