Cockpit view from JUNIT

I’m running a JUNIT which starts a process instance and using the below annotation

@SpringBootTest(classes=MainApplication.class)
@ActiveProfiles("test")
@RunWith(SpringRunner.class)
public class Flow{

@Test
	public void testFlowOne() throws JsonProcessingException, InterruptedException {
                // Variable declarations
		ProcessInstance instance=service.startProcessInstanceByKey("processflow",map);
		assertThat(instance).isStarted();
		//instance.
		assertThat(instance).hasPassed("Activity_1lbcfjh");
}

It starts using test properties but will the same bootstrap the emedded processengine in spring-boot and can i view the cockpit if i run i debug mode. I’m not able to connect to the port provided in the test application.properties. Is this approach correct.

Tried using ProcessTestCoverage as well but it terminates immediately

21:36:58.054 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.vodafone.iot.gdsp.changecsp.controller.FlowTest_3]
21:36:58.145 [main] DEBUG org.camunda.bpm.engine.test - ==== BUILDING PROCESS ENGINE ========================================================================
21:36:58.253 [main] DEBUG org.camunda.bpm.engine.test - ==== BUILDING PROCESS ENGINE ========================================================================
.

<dependency>
  <groupId>org.camunda.bpm.extension</groupId>
  <artifactId>camunda-bpm-process-test-coverage</artifactId>
  <version>0.3.2</version>
  <scope>test</scope>
</dependency>

> @Rule

@ClassRule
public static ProcessEngineRule rule=TestCoverageProcessEngineRuleBuilder.create().build();

Added the above code snippet in the JUNIT. will that generate the default HTML file under target? but it terminates saying building process engine only when i include @Rule code snippet.

EDIT:

It terminates JUNIT and the exception araised is. It says activity.cfg.xml is missing. What is the significance of this ? We want to avoid XML as it is a spring-boot project. Is there an alternative for this file ?

image