Skip to content

Commit

Permalink
Fix test folder readme; add behavior folder readme
Browse files Browse the repository at this point in the history
Signed-off-by: ClemensLinnhoff <Clemens.Linnhoff@partner.bmw.de>
  • Loading branch information
ClemensLinnhoff committed Mar 25, 2024
1 parent 17f020c commit ac862e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# *test* Folder

The test folder contains integration and unit tests as defined in the OpenMSL [OSMP Test Architecture](https://github.com/openMSL/.github/blob/main/doc/osmp_test_architecture.md).
The test folder contains behavior, integration and unit tests as defined in the OpenMSL [OSMP Test Architecture](https://github.com/openMSL/.github/blob/main/doc/osmp_test_architecture.md).

While unit tests test individual functions of the model, integration tests test the model in combination with other connected FMUs.
Behavior tests go one step further and evaluate the model output with a python script.
11 changes: 11 additions & 0 deletions test/behavior/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# *behavior* Folder

As described in the overall [OSMP Test Architecture](https://openmsl.github.io/doc/OpenMSL/test-architecture/index.html), behavior tests are similar to integration tests, but additionally check the output of the model under test.
Every test folder contains a System Structure Definition file (SSD) describing the test case, a README according to the OSMP [Test Architecture Readme Template](https://github.com/openMSL/.github/blob/main/doc/integration_test_readme_template.md) and all auxiliary data needed for the test.
All tests in this folder are automatically simulated in the GitHub Action pipeline for every commit.
This folder contains some examples for different test cases, as listed below.

| File | Description |
|------------------------|-------------------------------------------------------------------------------------------------------------------------|
| 001_detected_object | This behavior test checks, if the sensor model detects an object inside the sensor's specified field of view. |
| 002_object_outside_fov | This behavior test checks, if the sensor model does not detects an object outside the sensor's specified field of view. |

0 comments on commit ac862e1

Please sign in to comment.