Skip to content

Commit

Permalink
Added [run_tests.bat] and [run_tests.sh], updated [.coveragerc] and […
Browse files Browse the repository at this point in the history
….scrutinizer.yml]
  • Loading branch information
fuzeman committed Aug 25, 2015
1 parent ca63192 commit 21abed4
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[run]
source = Trakttv.bundle/Contents/Libraries/Shared/plugin/*
source = Trakttv.bundle/Contents/Libraries/Shared/plugin

[report]
omit = Trakttv.bundle/Contents/Tests/*
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:
tests:
override:
-
command: py.test --cov Trakttv.bundle/Contents/ Trakttv.bundle/Contents/Tests
command: ./run_tests.sh
coverage:
file: .coverage
format: py-cc
Expand Down
4 changes: 2 additions & 2 deletions Trakttv.bundle/Contents/Tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest==2.7.2
pytest-cov==1.8.1
coverage==3.7.1
pytest==2.7.2
15 changes: 15 additions & 0 deletions run_tests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

coverage run --rcfile .coveragerc -m py.test Trakttv.bundle\Contents\Tests

if "%~1" == "html" (
echo Generating html report...

coverage html
) else (
echo Generating simple report...

coverage report
)

echo Done
13 changes: 13 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
coverage run --rcfile .coveragerc -m py.test Trakttv.bundle/Contents/Tests

if [ "$1" = "html" ]; then
echo "Generating html report..."

coverage html
else
echo "Generating simple report..."

coverage report
fi

echo "Done"

0 comments on commit 21abed4

Please sign in to comment.