osgi/osgi.enroute

Documentation and code out of sync w.r.t definition of ${test-cases}

tomq42 opened this issue · 0 comments

The code says:
test-cases: ${classes;NAMED;*Test}
(https://github.com/osgi/osgi.enroute/blob/master/cnf/ext/enroute.bnd#L15)

The documentation (http://enroute.osgi.org/tutorial_base/600-testing.html) says:
"The ${test-cases} macro is set by OSGi enRoute; it calculates the classes that either extend junit.framework.TestCase class or that use the the JUnit 4 annotations like @test (you cannot combine these mechanisms)."

What the documentation describes is definitely the more expected behaviour. It took me a long time to figure out why some of my tests were getting run and not others.