Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Tests

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

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 a local checkout of the repository. It is also necessary to set the following environment variable when 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 propagated
resourceSetID = my-unique-id
modelPropertiesComma separated list of stringsempty

modelProperties = tiny-model, broken
properties
emptyCombined







name




complexity




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

  • No labels