diff --git a/ahoy.yml b/ahoy.yml
index 6119e3c343683e43d9e83409cf3cc67d71666f5e..dcefc3aaab1c32dfd67c7fd3eb7f8aee1c6dba70 100644
--- a/ahoy.yml
+++ b/ahoy.yml
@@ -7,7 +7,7 @@ commands:
     cmd: ahoy behat exec "$@"
     usage: Run Behat tests on the project
   test2xml:
-    cmd: ahoy behat --format junit --out tests/output "$@"
+    cmd: ahoy behat exec -- --format junit --out tests/output "$@"
     usage: Run Behat tests on the project and output in junit format
   update:
     cmd: composer lakedrops:behat "$@"