Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Latest commit

 

History

History
executable file
·
32 lines (20 loc) · 1.32 KB

testing.rst

File metadata and controls

executable file
·
32 lines (20 loc) · 1.32 KB

Testing

TravisCI AppVeyor

You need to install pytest for run unittests:

pip3 install -r dev-requirements.txt
You can run tests with pytest command:
  • Run all unittests: pytest tests
  • Run also tests for asynchronous interface: pytest tests --end2end
  • Run individual tests:
    • Run API tests: pytest tests/test_sync_core/test_public_api
    • Run every_historical() async scraper method's consistence: pytest tests/test_async_core/test_scraper/test_every_historical.py

Also, if your system is Unix, you can use make for run tests, install, precompile/restore source code, build and clean the whole directory (see Makefile).

You can see online tests for Linux/Mac and Windows based systems at TravisCI and AppVeyor: