I am trying to create some unit test for scout client elements.
I have template for AbstractGroupBox
, let say AbstractMyBox
.
I see that I need to have ScoutClientTestRunner
for this, so I create simple example :
@RunWith(ScoutClientTestRunner.class)
public class MyyBoxTemplateTest {
AbstractMyBox box;
@Before
public void createTemplate() throws Exception {
box = new AbstractMyBox() {};
}
@After
public void destroyTemplate() throws Exception {
box = null;
}
@Test
public void testTitle() {
String title = box.getLabel();
assertEquals(title, TEXTS.get("Something"));
}
}
When I run Unit test with JUnit Plug-in test
it open new eclipse window
and clock is spinning, inside JUnit component it said Runs: 0/0
What am I doing wrong?
Marko
I have wrong run-configuration settings.
Under Run-Configuration / Main / Program to Run I need to set Run an Application : [No Application] - Headless Mode