diff --git a/.drone.yml b/.drone.yml index fceca41..67c60c4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,8 +7,11 @@ steps: image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest commands: - npm install + - npm run test + - ls ./components/__tests__/ - sonar-scanner -Dsonar.projectKey=MovieFinder -Dsonar.sources=. -Dsonar.host.url=$${PLUGIN_SONAR_HOST} - -Dsonar.login=$${PLUGIN_SONAR_TOKEN} + -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.javascript.lcov.reportPaths=./components/__tests__/lcov.info + -Dsonar.exclusions=**/lcov-report/** secrets: [ SONAR_TOKEN ] settings: sonar_host: https://codefirst.iut.uca.fr/sonar/ diff --git a/components/__tests__/StyledText-test.js b/components/__tests__/StyledText-test.js deleted file mode 100644 index f569ce8..0000000 --- a/components/__tests__/StyledText-test.js +++ /dev/null @@ -1,10 +0,0 @@ -import * as React from 'react'; -import renderer from 'react-test-renderer'; - -import { MonoText } from '../StyledText'; - -it(`renders correctly`, () => { - const tree = renderer.create(Snapshot test!).toJSON(); - - expect(tree).toMatchSnapshot(); -});