diff --git a/templates/bats.yml b/templates/bats.yml
index 0dd19209d159f8ad31f368bd013a22f84cc107d4..8354e87a86bd84d2d9bd7f51bd7f3924dfc08471 100644
--- a/templates/bats.yml
+++ b/templates/bats.yml
@@ -4,9 +4,7 @@ bats:
   image: registry.shore.co.il/ci-images:bats
   tags: [ns4.shore.co.il]
   script:
-    - bats tests/ | tee results.tap
-  after_script:
-    - juxr tap --name bats --output results/ -- cat results.tap
+    - bats --output report/ --formatter junit tests/
   variables:
     GIT_SUBMODULE_STRATEGY: recursive
   artifacts: