Permalink
Browse files

Added [run_tests.bat] and [run_tests.sh], updated [.coveragerc] and […

….scrutinizer.yml]
  • Loading branch information...
fuzeman committed Aug 25, 2015
1 parent ca63192 commit 21abed4892b07b508b5ec5c20b21ef5b355b5724
Showing with 32 additions and 4 deletions.
  1. +1 −1 .coveragerc
  2. +1 −1 .scrutinizer.yml
  3. +2 −2 Trakttv.bundle/Contents/Tests/requirements.txt
  4. +15 −0 run_tests.bat
  5. +13 −0 run_tests.sh
@@ -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/*
@@ -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
@@ -1,2 +1,2 @@
pytest==2.7.2
pytest-cov==1.8.1
coverage==3.7.1
pytest==2.7.2
@@ -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
@@ -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.