Skip to content

Commit 8bd7edf

Browse files
committed
MNT: Avoid testing via deprecated setup.py test_suite
1 parent de1bcf8 commit 8bd7edf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ matrix:
2121
- pip install flake8 coverage
2222
script:
2323
- flake8
24-
- BOKEH_BROWSER=none catchsegv coverage run setup.py test
24+
- BOKEH_BROWSER=none catchsegv coverage run -m backtesting.test
2525
after_success:
2626
- bash <(curl -s https://codecov.io/bash)
2727

@@ -42,4 +42,4 @@ install:
4242
- pip install --pre .[test]
4343

4444
script:
45-
- BOKEH_BROWSER=none time catchsegv python setup.py test
45+
- BOKEH_BROWSER=none time catchsegv python -m backtesting.test

backtesting/test/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
suite = unittest.defaultTestLoader.discover('backtesting.test',
44
pattern='_test*.py')
55
if __name__ == '__main__':
6-
unittest.TextTestRunner().run(suite)
6+
unittest.TextTestRunner(verbosity=2).run(suite)

0 commit comments

Comments
 (0)