Skip to content

Commit 9f5abd6

Browse files
committed
[fea] tests via nose
1 parent 75580c1 commit 9f5abd6

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
- WSQL_TEST_DATABASE=wsql_test WSQL_TEST_USER=root CI_BUILD=1
99

1010
before_install:
11-
- pip install coveralls coverage
11+
- pip install -r requirements.dev.txt
1212

1313
install:
1414
- pip install .
@@ -17,8 +17,7 @@ before_script:
1717
- mysql -e 'create database wsql_test CHARACTER SET UTF8 COLLATE utf8_unicode_ci';
1818

1919
script:
20-
- coverage run -m unittest discover --start-directory test
21-
- coverage report -m
20+
- ./run-tests
2221

2322
after_success:
2423
- coveralls

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ include MANIFEST
44
include HISTORY
55
inlcude README
66
inlcude README.rst
7+
include requirements.dev.txt
8+
include run-tests
79
recursive-include extra *
810
recursive-include src *.h *.c

requirements.dev.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nose
2+
coverage

run-tests

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
export LOG_LEVEL=debug
4+
5+
exec nosetests \
6+
--logging-format='%(asctime)s [%(name)s] %(levelname)-6s %(message)s' \
7+
--with-coverage \
8+
--cover-package=wsql \
9+

0 commit comments

Comments
 (0)