diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 270e1cb68ac636c3ae49056d4a2753eace024abd..4ee5a19a1a8dc9f4808657951b564ff1b517275c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,14 +9,17 @@ LCG:
         - source /cvmfs/sft.cern.ch/lcg/views/LCG_104/x86_64-el9-gcc13-opt/setup.sh
         - ./install.sh
         - source tools/setup.sh
-        - (cd Darwin.build; ctest --output-junit ../test_report.xml)
-        - (cd Core.build; ctest --output-junit ../test_report.xml)
+        - ctest --test-dir Darwin.build --output-junit Darwin_test_report.xml
+        - ctest --test-dir Core.build --output-junit Core_test_report.xml
     artifacts:
       when: always
       paths:
-        - test_report.xml
+        - Darwin_test_report.xml
+        - Core_test_report.xml
       reports:
-        junit: test_report.xml
+        junit:
+        - Darwin_test_report.xml
+        - Core_test_report.xml
 
 micromamba:
     stage: build
@@ -28,11 +31,14 @@ micromamba:
         - micromamba activate DAS
         - ./install.sh
         - source tools/setup.sh
-        - (cd Darwin.build; ctest --output-junit ../test_report.xml)
-        - (cd Core.build; ctest --output-junit ../test_report.xml)
+        - ctest --test-dir Darwin.build --output-junit Darwin_test_report.xml
+        - ctest --test-dir Core.build --output-junit Core_test_report.xml
     artifacts:
       when: always
       paths:
-        - test_report.xml
+        - Darwin_test_report.xml
+        - Core_test_report.xml
       reports:
-        junit: test_report.xml
+        junit:
+        - Darwin_test_report.xml
+        - Core_test_report.xml