vnpy/tests/test_all.py
nanoric 5d0bf006c6 [Add] added support for mongodb
[Add] added tests for database and CsvLoaderEngine
[Mod] changed .travis.yaml
2019-04-14 06:15:06 -04:00

21 lines
516 B
Python

# tests/runner.py
import unittest
# import your test modules
import test_import_all
import trader
import app
# initialize the test suite
loader = unittest.TestLoader()
suite = unittest.TestSuite()
# add tests to the test suite
suite.addTests(loader.loadTestsFromModule(test_import_all))
suite.addTests(loader.loadTestsFromModule(trader))
suite.addTests(loader.loadTestsFromModule(app))
# initialize a runner, pass it your suite and run it
runner = unittest.TextTestRunner(verbosity=3)
result = runner.run(suite)