forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[githubaction] add coverage for unit tests
Run unit test coverage in web, analyzer and common
- Loading branch information
Zurab Tsinadze
committed
May 16, 2021
1 parent
46cca7e
commit 4a22269
Showing
10 changed files
with
57 additions
and
0 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ pylint==2.4.4 | |
mkdocs==1.1.2 | ||
PyYAML==5.4.1 | ||
mypy_extensions==0.4.3 | ||
coverage==5.5.0 |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
nose==1.3.7 | ||
portalocker==2.2.1 | ||
coverage==5.5.0 |
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
CLIENT_UNIT_TEST_CMD = $(REPO_ROOT) BUILD_DIR=$(BUILD_DIR) nosetests $(NOSECFG) -w client tests/unit | ||
CLIENT_UNIT_TEST_COV_CMD = $(REPO_ROOT) BUILD_DIR=$(BUILD_DIR) coverage run -m nose $(NOSECFG) -w client tests/unit && coverage report && coverage html | ||
|
||
|
||
test_unit_client: | ||
$(CLIENT_UNIT_TEST_CMD) | ||
|
||
test_unit_cov_client: | ||
$(CLIENT_UNIT_TEST_COV_CMD) | ||
|
||
test_unit_client_in_env: venv_dev | ||
$(ACTIVATE_DEV_VENV) && $(CLIENT_UNIT_TEST_CMD) | ||
|
||
test_unit_cov_client_in_env: venv_dev | ||
$(ACTIVATE_DEV_VENV) && $(CLIENT_UNIT_TEST_COV_CMD) |
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
SERVER_UNIT_TEST_CMD = $(REPO_ROOT) BUILD_DIR=$(BUILD_DIR) nosetests $(NOSECFG) -w server tests/unit | ||
SERVER_UNIT_TEST_COV_CMD = $(REPO_ROOT) BUILD_DIR=$(BUILD_DIR) coverage run -m nose $(NOSECFG) -w server tests/unit && coverage report && coverage html | ||
|
||
test_unit_server: | ||
$(SERVER_UNIT_TEST_CMD) | ||
|
||
test_unit_cov_server: | ||
$(SERVER_UNIT_TEST_COV_CMD) | ||
|
||
test_unit_server_in_env: venv_dev | ||
$(ACTIVATE_DEV_VENV) && $(SERVER_UNIT_TEST_CMD) | ||
|
||
test_unit_cov_server_in_env: venv_dev | ||
$(ACTIVATE_DEV_VENV) && $(SERVER_UNIT_TEST_COV_CMD) |
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