From d7cf8daae680770bf6156bea00ab25aae7ec517a Mon Sep 17 00:00:00 2001 From: Fernando Jose Gonzalez Sierra Date: Tue, 9 Apr 2024 22:56:14 +0200 Subject: [PATCH] Movidos los tests a carpetas para --- gatewayservice/{ => tests}/gateway-service.test.js | 0 {questionservice => questionService/tests}/server.test.js | 0 sonar-project.properties | 6 ++++++ userservice/authservice/{ => tests}/auth-service.test.js | 0 userservice/userservice/{ => tests}/user-service.test.js | 0 5 files changed, 6 insertions(+) rename gatewayservice/{ => tests}/gateway-service.test.js (100%) rename {questionservice => questionService/tests}/server.test.js (100%) rename userservice/authservice/{ => tests}/auth-service.test.js (100%) rename userservice/userservice/{ => tests}/user-service.test.js (100%) diff --git a/gatewayservice/gateway-service.test.js b/gatewayservice/tests/gateway-service.test.js similarity index 100% rename from gatewayservice/gateway-service.test.js rename to gatewayservice/tests/gateway-service.test.js diff --git a/questionservice/server.test.js b/questionService/tests/server.test.js similarity index 100% rename from questionservice/server.test.js rename to questionService/tests/server.test.js diff --git a/sonar-project.properties b/sonar-project.properties index c82b0e5..02fce9d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -10,10 +10,16 @@ sonar.host.url=https://sonarcloud.io sonar.language=js sonar.projectName=wiq_es05a +# Sonar exclusions sonar.coverage.exclusions=**/*.test.js sonar.coverage.exclusions=**/*.json, **/*.yaml sonar.coverage.exclusions=**/Dockerfile, **/*.dockerfile sonar.coverage.exclusions=webapp/src/components/tests/** +sonar.coverage.exclusions=userservice/authservice/tests/** +sonar.coverage.exclusions=userservice/userservice/tests/** +sonar.coverage.exclusions=questionservice/tests/** +sonar.coverage.exclusions=gatewayservice/tests/** +# Sonar sources sonar.sources=webapp/src/components,userservice/authservice,userservice/userservice,gatewayservice,questionservice sonar.sourceEncoding=UTF-8 sonar.exclusions=node_modules/** diff --git a/userservice/authservice/auth-service.test.js b/userservice/authservice/tests/auth-service.test.js similarity index 100% rename from userservice/authservice/auth-service.test.js rename to userservice/authservice/tests/auth-service.test.js diff --git a/userservice/userservice/user-service.test.js b/userservice/userservice/tests/user-service.test.js similarity index 100% rename from userservice/userservice/user-service.test.js rename to userservice/userservice/tests/user-service.test.js