Command: $ make test_all
A test report will be displayed and recorded to file upon completion called testing_report.txt
.
First, check if Docker image jm
exists. If not, run command: $ make build_jm_image
.
Then, run the test with command: $ make test_<testcase>
.
- Compiles model
- Builds the test case image
- Deploys the test case container in detached mode
- Runs the Julia controller example for
- Runs
test_<testcase>.py
- Stops test case container
- Removes test case image.
First, check if Docker image jm
exists. If not, run command: $ make build_jm_image
.
Then, run the test with command: $ make test_parser
- Runs
test_parser.py
First, check if Docker image jm
exists. If not, run command: $ make build_jm_image
.
Then, run the test with command: $ make test_data
- Compiles testcase2 and testcase3 models
- Copies the
/data
,/forecast
, and/kpis
directories as well astestcases/testcase2
andtestcases/testcase3
directories into thejm
Docker container. - Runs
test_data.py
within thejm
Docker container. The tests are performed within the container because some of them require JModelica. - Copies references results and test log out of
jm
Docker container, then stopsjm
Docker container.
First, check if Docker image jm
exists. If not, run command: $ make build_jm_image
.
Then, run the test with command: $ make test_forecast
- Compiles testcase2 and testcase3 models
- Copies the
/data
,/forecast
, and/kpis
directories as well astestcases/testcase2
andtestcases/testcase3
directories into thejm
Docker container. - Runs
test_forecast.py
within thejm
Docker container. The tests are performed within the container because some of them require JModelica. - Copies references results and test log out of
jm
Docker container, then stopsjm
Docker container.
First, check if Docker image jm
exists. If not, run command: $ make build_jm_image
.
Then, run the test with command: $ make test_kpis
- Compiles testcase2 and testcase3 models
- Copies the
/data
,/forecast
, and/kpis
directories as well astestcases/testcase2
andtestcases/testcase3
directories into thejm
Docker container. - Runs
test_kpis.py
within thejm
Docker container. The tests are performed within the container because some of them require JModelica. - Copies references results and test log out of
jm
Docker container, then stopsjm
Docker container.
Command: $ make test_readme_commands
This test builds and runs testcase2, and then makes the API calls shown on the file ../README.md
.
utilities.py
is used for common testing functions in Python.- Each test in the
makefile
generates its own test log called<test_name>.log
. If running all tests with$ make test_all
, thenreport.py
reads and summarizes all test logs, finally writing this summary intesting_report.txt
. - The Python package versions for the testing environment can be found in the file
../.travis.yml
under the jobpython: 3.9
. - An additional make target
test_python2
runs the example controllers implemented in Python in../examples/python
for testcase1, testcase2, and testcase3 in a Python 2.7 environment, defined by the file../.travis.yml
under the jobpython: 2.7
.