JUnitTestSuiteSpec and testing multiple JvmLibrarySpecs together

(Casper Færgemand) #1

I have a model with a testSuites with a single test(JUnitTestSuiteSpec). The model's components contain three different JvmLibrarySpec, and I would like to test them together. Currently calling testing $.components.<spec> has an overwriting behavior, making the last call overwrite the former, instead of adding the sources. Is there a way to add a set of sources instead?

(Paul Merlin) #2

Hi Casper,

A JUnitTestSuiteSpec only has a single tested component. If the four components you want to test do not depend on each other you could either create a test suite per component, or, create a fifth component that depends on the four other ones and use it as component under test.

If you are interested in supporting several components under test per test suite, please consider contributing it.