-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix coverage #25
Fix coverage #25
Conversation
… in test options in project.json is being detected
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 65a315c. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
package-lock.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert changes
@@ -43,10 +43,12 @@ describe('nx-sonarqube e2e', () => { | |||
it( | |||
'should generate test coverage, configure nx-sonarqube target, & include static and implicit sources in the scan', | |||
async () => { | |||
// await runNxCommandAsync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@@ -47,7 +47,16 @@ async function determinePaths( | |||
sources.push(dep.sourceRoot); | |||
|
|||
if (dep.testTarget) { | |||
if (dep.testTarget.options.jestConfig) { | |||
if (dep.testTarget.options.coverageDirectory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit test should cover this branching and be 100%. check the CI run for more details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I covered it in the e2e test. I will add a unit test to check this case.
Allow nx-sonarqube plugin to detect coverageDirectory and properly add coverage files.