Integration tests fail for template project atlas-create-bitbucket-plugin

I’ve generated a new project using atlas-create-bitbucket-plugin. Everything runs fine, except for integration tests.

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.019 s <<< FAILURE! - in it.test.MyComponentWiredTest
[ERROR] initialization(it.test.MyComponentWiredTest) Time elapsed: 6.018 s <<< ERROR!
java.lang.Throwable: unable to find runner for class: it.test.MyComponentWiredTest

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] MyComponentWiredTest.initialization » Throwable unable to find runner for clas...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]

What should I be looking for?

1 Like

Following these instructions worked for me, though I can’t really explain why this works.

In your project’s pom.xml, under the relevant com.atlassian.maven.plugins configuration, instructions section, modify the last line of the Import-Package section as follows:

<Import-Package>
    ...
    *;version="0";resolution:=optional
</Import-Package>