Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 3.4 KB

File metadata and controls

70 lines (58 loc) · 3.4 KB

Unit Test: pytest

This project implements unit testing, to validate logic in a consistent fashion. Currently, only high-level unit tests have been defined. These unit tests have been automated within corresponding travis builds, using a series of docker containers, connected via a common docker network:

Current unit tests cover the following sessions:

  • data_new
  • data_append
  • model_predict
  • model_generate

which can be executed manually as follows:

$ cd /path/to/machine-learning/
$ vagrant up
$ vagrant ssh
vagrant@vagrant-ubuntu-trusty-64:~$ (cd /vagrant/test && pytest manual)
========================================= test session starts ==========================================
platform linux2 -- Python 2.7.6, pytest-3.0.3, py-1.4.31, pluggy-0.4.0
rootdir: /vagrant/test/manual, inifile: pytest.ini
plugins: flask-0.10.0
collected 20 items

manual/configure_database.py .
manual/configure_redis.py .
manual/authentication/pytest_crypto.py .
manual/authentication/pytest_validate_password.py .
manual/programmatic_interface/dataset_url/pytest_svm_dataset_url.py ....
manual/programmatic_interface/dataset_url/pytest_svr_dataset_url.py ....
manual/programmatic_interface/file_upload/pytest_svm_file_upload.py ....
manual/programmatic_interface/file_upload/pytest_svr_file_upload.py ....

====================================== 20 passed in 27.05 seconds ======================================

Note: future releases (i.e. milestone 1.0), will include more granular unit tests.

Note: every script within this repository, with the exception of puppet (erb) templates, and a handful of open source libraries, have been linted via .travis.yml