Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.45 KB

TEST.md

File metadata and controls

41 lines (30 loc) · 1.45 KB

Testing

BETSE is rigorously tested with a comprehensive test suite comprising both functional and unit tests.

Manual Testing

BETSE is manually testable by py.test at the command line. Either:

  • Run all available tests. Either:

    • Run test, the provided Bash shell script wrapper. For convenience, this script is runnable from any directory (including the top-level BETSE directory) and accepts all arguments accepted by the test subcommand (detailed below):

          $ ./test
      
    • Run the setuptools-driven test subcommand. Due to setuptools constraints, this subcommand is runnable only from the top-level BETSE directory:

          $ cd "${BETSE_DIR}"
          $ python3 setup.py test
      
  • Run all tests matching a passed Python-evaluatable expression. For example, to run all test functions and classes whose names contain either test_tartarus or test_thalassa:

      $ cd "${BETSE_DIR}"
      $ python3 setup.py test -k 'test_tartarus or test_thalassa'
    

Continuous Integration (CI)

BETSE is continuously integrated by GitLab-CI on each commit pushed to each branch of BETSE's GitLab-hosted Git repository.