Skip to content

Commit

Permalink
Merge pull request #8 from ibpsa/master
Browse files Browse the repository at this point in the history
Update local master
  • Loading branch information
EttoreZ committed Aug 9, 2022
2 parents 021cd54 + 90aa88f commit 8343eec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

Released on xx/xx/xxxx.

**The following changes are backwards-compatible and do not significantly change benchmark results:**

- Add unit test reporting script to each individual unit test target in the ``testing/makefile``. This for [#466](https://github.com/ibpsa/project1-boptest/issues/466).

## BOPTEST v0.3.0

Expand Down
14 changes: 14 additions & 0 deletions testing/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ test_%:
cd .. && python testing/test_$*.py
# Stop testcase container
cd .. && docker-compose down
# Report test results
python report.py

test_testcase1:
# Compile testcase model
Expand All @@ -105,6 +107,8 @@ test_testcase1:
cd ../examples/julia && make remove-image Script=testcase1
cd ../examples/javascript && make remove-image Script=testcase1
cd ../examples/javascript && rm geckodriver
# Report test results
python report.py

test_testcase2:
# Compile testcase model
Expand All @@ -125,6 +129,8 @@ test_testcase2:
cd ../examples/julia && make remove-image Script=testcase2
cd ../examples/javascript && make remove-image Script=testcase2
cd ../examples/javascript && rm geckodriver
# Report test results
python report.py

test_parser:
make run_jm
Expand All @@ -134,6 +140,8 @@ test_parser:
docker cp ${IMG_NAME}:/usr/local/testing/references/parser ./references
docker cp ${IMG_NAME}:/usr/local/testing/test_parser.log ./test_parser.log
make stop_jm
# Report test results
python report.py

test_data:
# Compile testcase model
Expand All @@ -155,6 +163,8 @@ test_data:
docker cp ${IMG_NAME}:/usr/local/testing/test_data.log ./test_data.log
# Stop jm docker container
make stop_jm
# Report test results
python report.py

test_forecast:
# Compile testcase model
Expand All @@ -174,6 +184,8 @@ test_forecast:
docker cp ${IMG_NAME}:/usr/local/testing/test_forecast.log ./test_forecast.log
# Stop jm docker container
make stop_jm
# Report test results
python report.py

test_kpis:
# Compile testcase model
Expand All @@ -193,6 +205,8 @@ test_kpis:
docker cp ${IMG_NAME}:/usr/local/testing/test_kpis.log ./test_kpis.log
# Stop jm docker container
make stop_jm
# Report test results
python report.py

test_readme_commands:
# Test readme commands work right after instantiation of test case container
Expand Down

0 comments on commit 8343eec

Please sign in to comment.