I'm trying to run integration test
my test class is
@RunWith(AtlassianPluginsTestRunner.class)
public class MyClassTestIT extends BaseFuncTest {
private ApplicationPropertiesService applicationProperties;
public MyClassTestIT (ApplicationPropertiesService applicationProperties) {
this.applicationProperties = applicationProperties;
}
@techoneway
public void test() throws IOException, ServletException {
System.out.println(applicationProperties.getDisplayName());
Assert.assertEquals("names do not match!", "myComponent:" + applicationProperties.getDisplayName());
}
}
I have atlassian-plugin.xml under resource folder which is importing required key as well
<component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties"/>
but getting below error.
java.lang.Exception: No tests found in class
at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.runViaRestCall(AtlassianPluginsTestRunner.java:125)
at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.run(AtlassianPluginsTestRunner.java:75)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Hello,
Can you clarify which product this is for, and what exactly you are trying to do?
If you're developing an add-on, you might want to have a look at our Developer Community.
Regards,
Shannon
Hi Shannon,
This is for bitbucket plugin. I'm writing integration test for my plugin and its failing with above error.
I have also posted same on developer community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil, have you solved this by your own? I'm having the same problem but with Jira and it seems problem was introduced with Jira 8, if I try with any Jira version 7 test are found.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.