-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·39 lines (35 loc) · 1.12 KB
/
run_tests.sh
File metadata and controls
executable file
·39 lines (35 loc) · 1.12 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
39
#!/bin/bash
# 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
TEST_TYPE=BASIC
while true; do
clear
echo $TEST_TYPE TESTS
python --version
case $TEST_TYPE in
"BASIC")
# Add --nocapture to show stdout
nosetests -a "!slow,!external,!skip"
;;
"ALL")
nosetests -a "!external,!skip"
;;
"EXTERNAL")
nosetests -a "external,!skip"
;;
"COVERAGE")
nosetests -a "!external,!skip" --with-coverage --cover-package=vimswitch --cover-branches --cover-html
;;
"CUSTOM")
#nosetests vimswitch.test.<module>.<class>
;;
esac
read -p "Press Enter to continue..."
done