Skip to content
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

Handle empty tests #2579

Merged
merged 2 commits into from
Oct 4, 2018
Merged

Handle empty tests #2579

merged 2 commits into from
Oct 4, 2018

Conversation

rchande
Copy link

@rchande rchande commented Oct 4, 2018

This will help with but probably not fix #2398

@rchande rchande requested a review from akshita31 October 4, 2018 17:35
@codecov
Copy link

codecov bot commented Oct 4, 2018

Codecov Report

Merging #2579 into master will decrease coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #2579     +/-   ##
=========================================
- Coverage   64.62%   64.52%   -0.1%     
=========================================
  Files          97       97             
  Lines        4251     4251             
  Branches      613      614      +1     
=========================================
- Hits         2747     2743      -4     
- Misses       1326     1328      +2     
- Partials      178      180      +2
Flag Coverage Δ
#integration 52.42% <0%> (-0.43%) ⬇️
#unit 84.7% <0%> (-0.07%) ⬇️
Impacted Files Coverage Δ
src/observers/DotnetTestLoggerObserver.ts 100% <100%> (ø) ⬆️
src/omnisharp/delayTracker.ts 68.42% <0%> (-5.27%) ⬇️
src/features/diagnosticsProvider.ts 76.71% <0%> (-1.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c61e86...da7b8e5. Read the comment docs.

@rchande rchande merged commit 030ec63 into dotnet:master Oct 4, 2018
@rchande rchande deleted the handleEmptyTests branch October 4, 2018 19:20
@@ -72,7 +72,9 @@ export default class DotNetTestLoggerObserver extends BaseLoggerObserver {
private handleReportDotnetTestResults(event: ReportDotNetTestResults) {
this.logger.appendLine("----- Test Execution Summary -----");
this.logger.appendLine('');
const results = event.results;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to print "Test Execution summary" and print "Total Tests:0" even if the results are null?
Should we do a null check instead and do not print anything instead ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debugging Unit Test loses codelens Run Test / Debug Test - DebugSessionManager does not stop
2 participants