From 4d72c04a4bbdcce1766e465b21549c2b83c92a90 Mon Sep 17 00:00:00 2001
From: Fabian Seidl <fabian.b.seidl@stud.h-da.de>
Date: Thu, 5 May 2022 14:07:22 +0000
Subject: [PATCH] Fix missing test coverage

See merge request danet/gosdn!301
---
 .gitlab/ci/.test.yml | 1 +
 controller/Makefile  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab/ci/.test.yml b/.gitlab/ci/.test.yml
index b494223a2..60fea0a97 100644
--- a/.gitlab/ci/.test.yml
+++ b/.gitlab/ci/.test.yml
@@ -18,6 +18,7 @@ unit-test:
         - cd controller
         - make ci-unit-test
     after_script:
+        - cd controller
         - go tool cover -func=coverage.out
     <<: *test
 
diff --git a/controller/Makefile b/controller/Makefile
index 1ca977f2b..fdedd2e7b 100644
--- a/controller/Makefile
+++ b/controller/Makefile
@@ -53,7 +53,7 @@ ci-unit-test: ci-install-tools
 	ENVIRONMENT=testing gotestsum --junitfile report.xml --format testname -- -short -race $$( go list ./... | grep -v /forks/ | grep -v /mocks ) -v -coverprofile=coverage.out
 
 ci-controller-test: ci-install-tools
-	ENVIRONMENT=testing gotestsum --junitfile report.xml --format testname -- -race -v -run TestRun
+	ENVIRONMENT=testing gotestsum --junitfile report.xml --format testname -- -race -v -run TestRun -coverprofile=coverage.out
 
 integration-test-nucleus:
 	ENVIRONMENT=testing  &&\
-- 
GitLab