-
Notifications
You must be signed in to change notification settings - Fork 56
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
When fit (focused) test is used, no other test is reported pending. #142
Comments
Hi @johnjbarton!
Pending test state is actually handled by jasmine and correspond to these cases:
Skipped is a deducted state corresponding to these cases:
IIRC we do not have any information for skipped tests, so we could not display a skipped summary.
I agree, display is really not explicit when tests are skipped. I would go with these two changes:
I would be pleased to review a PR for that :) |
…CCESS. Show skipped summary count in pending color. Fixes bcaudan#142
…CCESS. Show skipped summary count in pending color. Fixes #142
Available in |
I ran a test suite and I got "all green", but when I read closely I see "Ran 1 of 2 specs". Then I recalled that some time ago I set fit() on one test.
Should non-fit tests be reported pending when at least one test is fit()?
I guess the push back could be that the current fit() UI is clean, adding a bunch of pending tests would clutter the focused UI.
Maybe the summary line:
Executed 1 of 2 specs SUCCESS (1 SKIPPED)
should be different. It seems incorrect to say "SUCCESS" for a fit() case. Maybe "INCOMPLETE" in yellow unless skippedSpecs and pendingSpecs are zero? That could be enough to alert a user that they are not done with the suite.
The text was updated successfully, but these errors were encountered: