From 6bb5f81f5f961056671f6dfddfda84c8afb08672 Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Wed, 7 Jun 2023 14:46:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20=F0=9F=92=9A=20Stop=20checking?= =?UTF-8?q?=20test=20files=20for=20test=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- README.md | 6 ++++++ package.json | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 402fde7..9f5babb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ steps: -Dsonar.host.url=$${PLUGIN_SONAR_HOST} -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info - -Dsonar.exclusions=**/lcov-report/** + -Dsonar.exclusions=**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts,**/lcov-report/** settings: sonar_host: https://codefirst.iut.uca.fr/sonar/ sonar_token: diff --git a/README.md b/README.md index b99365e..3c48434 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,12 @@ A React Native app for education purposes. Refer to [instructions here](https://react-native-courses.clubinfo-clermont.fr/docs/notation). ++ [Sketches](#sketches) + - [Trainers](#trainers) + - [Pokemongs](#pokemongs) + - [Moves](#moves) ++ [Using the app](#using-the-app) + ## Sketches This app will contain several "master/detail" tabs. They are as follows. diff --git a/package.json b/package.json index bb125f6..414c99f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,13 @@ "firefox", "safari" ] - } + }, + "collectCoverageFrom": [ + "**/*.{ts,tsx}", + "!**/?(*.)+(spec|test).ts?(x)", + "!**/node_modules/**", + "!**/vendor/**" + ] }, "dependencies": { "@expo/webpack-config": "^18.0.1",