-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_tests.bat
More file actions
38 lines (33 loc) · 1.02 KB
/
Copy pathrun_tests.bat
File metadata and controls
38 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
:: TEST_TYPE - Possible values:
:: BASIC = Runs all tests except the slow and external ones
:: ALL = Runs the basic and slow tests. Slow tests are those that create local
:: servers etc.
:: EXTERNAL = Runs only external test. These tests make use of resources
:: outside the local machine. For example downloading a file from github.
:: Avoid running these tests frequently; we want to be nice to others :)
:: COVERAGE = Checks the test coverage after running ALL tests
:: CUSTOM = Use this for running specific tests
set TEST_TYPE=BASIC
:loop
cls
echo %TEST_TYPE% TESTS
python --version
if "%TEST_TYPE%"=="BASIC" (
:: Add --nocapture to show stdout
nosetests -a "!slow,!external,!skip"
)
if "%TEST_TYPE%"=="ALL" (
nosetests -a "!external,!skip"
)
if "%TEST_TYPE%"=="EXTERNAL" (
nosetests -a "external,!skip"
)
if "%TEST_TYPE%"=="COVERAGE" (
nosetests -a "!external,!skip" --with-coverage --cover-package=vimswitch --cover-branches
)
if "%TEST_TYPE%"=="CUSTOM" (
rem nosetests vimswitch.test.<module>.<class>
)
pause
goto loop