Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Tests

Automatic JUnit test can tests are executed in each continuous integration build in Bamboo. The can also be run locally in your KIELER development environment. They are also execute in each continuous integration build in Bamboo.

All tests are located in the test folder of the semantics repository. Most the perform their test on models loaded from the models repository.
Executing these test requires to clone a local checkout of the repository locally and . It is also necessary to set the following environment variable for testwhen executing the tests:

models_repository=path/to/models/repository

Models Repository

...

The models repository uses property files to detect and configure models used in tests.

The properties associated with a model file are derived from a hierarchy of property files. All files named directory.properties assign properties to the directory the are placed and all subdirectories. Files named modelA.properties assign properties to all files in the same diretory with the same filename, i.e. modelA.sct or modelA.broken.sct.

There are some predefined properties which generally control model detection and categorization but you can add any other property.

KeyValueTypeDefaultCombinationDescriptionExample
ignorebooltrueOverride
ignore = false
confidentialboolfalseOverride
confidential = true
modelFileExtensionComma separated list of stringsemptyOverride
modelFileExtension = sct
traceFileExtensionComma separated list of stringsemptyOverride
traceFileExtension = eso, .trace
resourceSetIDStringnullNot propagatedconfidentialBoolean
propertiesresourceSetID = my-unique-id
modelPropertiesComma separated list of stringsempty

modelProperties = tiny-model, broken
properties
emptyCombined







name




complexityreferences




Other properties




Note that ignore is true by default, that means you have to set it explicitly to include new files/folders in the automatic testing process.

Benchmarks