bndtools/bndtools — Issue #357: Tests are run multiple times
Author: bnd
Created: 2012-03-09 13:49:39+00:00
State: open

I wanted to start to develop a integration test for my project. I
followed the Bndtools project for "Integration Test". Now when I am
running the test, it will executed two times. Why is it so? The test
does nothing special. I only added a counter to see how often the test
will run.

Christian, I ran into the same issue and noticed that bndtools adds the biz.aQute.junit bundle to -runbundles upon resolve.
It appears that biz.aQute.junit is triggered by the bundle activator as well as by the 'OSGi Framework JUnit Tests' launch configuration.
The workaround I use is to manually remove the biz.aQute.junit bundle from runbundles.