File tree 3 files changed +25
-3
lines changed
3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change
1
+ [report]
2
+ omit =
3
+ */python?.?/*
4
+ */site-packages/nose/*
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ before_install:
8
8
9
9
install : " pip install -r requirements.txt"
10
10
11
- script : python tests.py --with-doctest --with-coverage --cover-package =nodepy;
11
+ script : coverage run --source =nodepy tests.py
12
12
13
13
after_success :
14
14
- coveralls
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
3
import matplotlib
4
- import nose
4
+ import doctest
5
+ import nodepy
5
6
matplotlib .use ('agg' )
7
+ import unittest
6
8
7
- nose .main ()
9
+ for module_name in ('runge_kutta_method' ,
10
+ 'linear_multistep_method' ,
11
+ 'ivp' ,
12
+ 'low_storage_rk' ,
13
+ 'rooted_trees' ,
14
+ 'snp' ,
15
+ 'stability_function' ,
16
+ 'general_linear_method' ,
17
+ 'ode_solver' ,
18
+ 'semidisc' ,
19
+ 'strmanip' ,
20
+ 'utils' ,
21
+ 'convergence' ):
22
+ module = nodepy .__getattribute__ (module_name )
23
+ doctest .testmod (module )
24
+
25
+ unittest .main (module = 'nodepy.unit_tests' ,exit = False )
You can’t perform that action at this time.
0 commit comments