Skip to content

Commit

Permalink
Merge pull request #17 from sunquakes/development
Browse files Browse the repository at this point in the history
Test coverage scope.
  • Loading branch information
sunquakes authored May 26, 2024
2 parents f2f210c + e86035d commit 22d1e89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: yarn
- name: Test and coverage
run: yarn test --coverage
run: yarn test -- --coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
'\\.js$': 'babel-jest'
},
collectCoverage: true,
collectCoverageFrom: ['./src/db/sqlite3.js'],
collectCoverageFrom: ['src/db/sqlite3.js'],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov']
}
1 change: 0 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
sonar.organization=sunquakes
sonar.projectKey=sunquakes_electron-kits

sonar.sources=src/db/sqlite3.js
sonar.exclusions=src/lang/**.js
sonar.javascript.lcov.reportPaths=coverage/lcov.info

0 comments on commit 22d1e89

Please sign in to comment.