diff --git a/README.md b/README.md index 98bf79e..c1bf996 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,10 @@ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=vanGalilea_react-native-testing&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=vanGalilea_react-native-testing) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=vanGalilea_react-native-testing&metric=coverage)](https://sonarcloud.io/summary/new_code?id=vanGalilea_react-native-testing) [![Unit Testing](https://github.com/vanGalilea/react-native-testing/actions/workflows/unit-testing.yml/badge.svg)](https://github.com/vanGalilea/react-native-testing/actions/workflows/unit-testing.yml) +[![E2E Testing](https://github.com/vanGalilea/react-native-testing/actions/workflows/e2e-testing.yml/badge.svg)](https://github.com/vanGalilea/react-native-testing/actions/workflows/e2e-testing.yml) ### Covered Examples 🎞 -- 👆 [Clicking buttons and asserting onPress' outcome](https://github.com/vanGalilea/react-native-testing/blob/master/__tests__/Counter.test.tsx). +- 👆 [Clicking buttons and asserting onPress' outcome](https://github.com/vanGalilea/react-native-testing/blob/main/apps/rn-cli-app/__tests__/Counter.test.tsx). - 📲 [Filling a simple login form and asserting successful submission](https://github.com/vanGalilea/react-native-testing/blob/master/__tests__/LoginSubmission.test.tsx). - 🎣 [Custom hook testing (number of alternatives)](https://github.com/vanGalilea/react-native-testing/blob/master/__tests__/CounterUsesCustomHook.test.tsx). - 📡 [Mocking fetch calls](https://github.com/vanGalilea/react-native-testing/blob/master/__tests__/LoginSubmission.test.tsx#L36). diff --git a/sonar-project.properties b/sonar-project.properties index f5b9190..30aecea 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,10 +1,10 @@ sonar.organization=vangalilea sonar.projectKey=vanGalilea_react-native-testing sonar.javascript.lcov.reportPaths=**/coverage/lcov.info -sonar.sources=src/ +sonar.sources=apps/rn-cli-app/src/, apps/rn-expo-app/app sonar.test.exclusions=**/__tests__/** sonar.coverage.exclusions=**/__tests__/**, **/__mocks__/** -sonar.coverage.inclusions=**/src/**/**.ts|tsx +sonar.coverage.inclusions=**/src/**/**.ts|tsx, **/app/**/**.ts|tsx sonar.exclusions=**/android/**, **/ios/** sonar.verbose=true sonar.host.url=https://sonarcloud.io