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
431ed51
commit de9b826
Showing
5 changed files
with
24 additions
and
2 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 |
---|---|---|
|
@@ -7,4 +7,5 @@ htmlcov/ | |
secrets.json | ||
venv/ | ||
cron.log | ||
|
||
coverage.xml | ||
results.xml |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ setup: | |
|
||
test-travis: | ||
@$(PYTEST) | ||
@sonar-scanner | ||
|
||
test: | ||
@$(PYTHON) -m $(PYTEST) |
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,3 +1,3 @@ | ||
[pytest] | ||
addopts = --pep8 --cov=HostsTools tests/ --cov-report html --cov-report term | ||
addopts = --pep8 --junitxml=results.xml --cov=HostsTools tests/ --cov-report html --cov-report term --cov-report xml | ||
pep8maxlinelength = 120 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
sonar.projectKey=lightswitch05_hosts | ||
# this is the name and version displayed in the SonarCloud UI. | ||
sonar.projectName=hosts | ||
|
||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | ||
# This property is optional if sonar.modules is set. | ||
sonar.sources=. | ||
sonar.tests=./tests | ||
sonar.inclusions=**/*.py | ||
|
||
# Encoding of the source code. Default is default system encoding | ||
sonar.sourceEncoding=UTF-8 | ||
|
||
sonar.python.coverage.reportPaths=./coveraage.xml | ||
sonar.python.xunit.reportPath=./results.xml |