@@ -77,6 +77,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
77
77
HttpServletResponse response = (HttpServletResponse ) servletResponse ;
78
78
79
79
String keploy_test_id = request .getHeader ("KEPLOY-TEST-ID" );
80
+ String keploy_test_set_id = request .getHeader ("KEPLOY-TEST-SET-ID" );
80
81
// logger.debug("KEPLOY-TEST-ID: {}", keploy_test_id);
81
82
filterChain .doFilter (request , response );
82
83
if (System .getenv ("ENABLE_DEDUP" ) != null ) {
@@ -89,7 +90,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
89
90
// Run getCoverage in a separate thread
90
91
// Thread coverageThread = new Thread(() -> {
91
92
try {
92
- getCoverage (keploy_test_id );
93
+ getCoverage (keploy_test_id , keploy_test_set_id );
93
94
} catch (InterruptedException | IOException e ) {
94
95
throw new RuntimeException (e );
95
96
}
@@ -180,7 +181,7 @@ public synchronized void execWriter2(String keploy_test_id) throws IOException {
180
181
}
181
182
}
182
183
183
- public void getCoverage (String keploy_test_id ) throws IOException , InterruptedException {
184
+ public void getCoverage (String keploy_test_id , String keploy_test_set_id ) throws IOException , InterruptedException {
184
185
185
186
try {
186
187
execWriter (keploy_test_id );
@@ -189,7 +190,7 @@ public void getCoverage(String keploy_test_id) throws IOException, InterruptedEx
189
190
}
190
191
191
192
try {
192
- execReader (keploy_test_id );
193
+ execReader (keploy_test_id , keploy_test_set_id );
193
194
} catch (IOException e ) {
194
195
e .printStackTrace (); // Example: print the stack trace
195
196
}
@@ -200,7 +201,7 @@ public void shutdownExecutor() {
200
201
executorService .shutdown ();
201
202
}
202
203
203
- private void execReader (String keploy_test_id ) throws IOException {
204
+ private void execReader (String keploy_test_id , String keploy_test_set_id ) throws IOException {
204
205
// Together with the original class definition we can calculate coverage
205
206
// information:
206
207
out .println ("------------------------------------------" );
@@ -249,7 +250,7 @@ private void execReader(String keploy_test_id) throws IOException {
249
250
// System.out.println("Line_Path: " + Line_Path);
250
251
251
252
Map <String , Object > testData = new HashMap <>();
252
- testData .put ("id" , keploy_test_id );
253
+ testData .put ("id" , keploy_test_set_id + "/" + keploy_test_id );
253
254
// Map<String, Object> test1 = createTestData("test-1",testData);
254
255
testData .put ("executedLinesByFile" , executedLinesByFile );
255
256
0 commit comments