diff --git a/build/ci/.test.yml b/build/ci/.test.yml
index 234d563779bdde73cd50cd08cbdf7aa9f5cb9a3c..dd4f07a0a70490c2ce539a91081ad3c196d73f3e 100644
--- a/build/ci/.test.yml
+++ b/build/ci/.test.yml
@@ -34,16 +34,16 @@ integration-test:
     - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
     - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
       allow_failure: true
-  after_script:
-    - go tool cover -func=coverage.out
 
 unit-test:
   script:
     - go test -short -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
+  after_script:
+    - go tool cover -func=coverage.out
   <<: *test
 
 controller-test:
   script:
     - cd ./nucleus
-    - go test -race -v -run TestRun -coverprofile=../coverage.out
+    - go test -race -v -run TestRun
   <<: *test
\ No newline at end of file