Running Tests

This requires that the model contains a system specification, but this system specification is not used and hence does not need to define any instances or channels. It only makes sense for models with test primitives. Alternatively, models can also be run as POOSL Simulation.

Launch

Follow one of these steps:

The launch configuration will be automatically created. You can change the launch settings in the launch configuration.

Monitor

The result of the tests wil be shown in the Console view at the bottom of the screen. At the end of the tests the console output gives the results of the tests, for example:

======================================
Testsuite summary
======================================
# TOTAL: 4
# PASS: 2
# FAIL: 1
# SKIP: 1
======================================
* someTestClass::someDataMethod
Failed with: Error: 'ASSERT: Test will fail'
Location: (C:\...\org.eclipse.poosl.examples\models-basic\HelloWorld\hello_world.poosl:47:10-C:\...\org.eclipse.poosl.examples\models-basic\HelloWorld\hello_world.poosl:47:47)
======================================
Some unit tests failed.

Stop

To stop a running simulation, click on the red stop button (red square icon) in the Console view at the bottom of the screen.

Advanced features