-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17887a7
commit 1d87b5b
Showing
10 changed files
with
64 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
# Run unit tests | ||
test: | ||
python3 -m unittest discover -s tests > /dev/null | ||
@echo "Running unit tests..." | ||
@python3 -m unittest discover -s tests > /dev/null | ||
|
||
# Check test coverage using unittest module | ||
coverage: | ||
coverage run --source=cce -m unittest discover -s tests > /dev/null; coverage report | ||
@echo "Checking test coverage using unittest module..." | ||
@coverage run --source=cce -m unittest discover -s tests > /dev/null; coverage report | ||
|
||
# Check test coverage and show the results in browser | ||
html: | ||
coverage run --source=cce -m unittest discover -s tests > /dev/null; coverage html; python -m webbrowser "./htmlcov/index.html" & | ||
@echo "Checking test coverage and showing the results in browser..." | ||
@coverage run --source=cce -m unittest discover -s tests > /dev/null; coverage html; python -m webbrowser "./htmlcov/index.html" & | ||
|
||
# Check compatibility with Python 2.7 | ||
comp: | ||
python2 -m unittest discover -s tests > /dev/null | ||
@echo "Checking compatibility with Python 2.7..." | ||
@python2 -m unittest discover -s tests > /dev/null | ||
|
||
install: | ||
pip install . | ||
@echo "Installing cce module via pip..." | ||
@pip install . | ||
|
||
.PHONY: test | ||
.PHONY: test coverage html comp install |
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
File renamed without changes.
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
File renamed without changes.
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
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