Skip to content

fix(logging): Summarize SKIPPED tests in debug.html.#1115

Merged
vojtajina merged 1 commit intokarma-runner:masterfrom
johnjbarton:skip-skipped
Jul 11, 2014
Merged

fix(logging): Summarize SKIPPED tests in debug.html.#1115
vojtajina merged 1 commit intokarma-runner:masterfrom
johnjbarton:skip-skipped

Conversation

@johnjbarton
Copy link
Copy Markdown
Contributor

Before: hundreds of SKIPPING lines in console.log.
After: A single summary line with a count.

Closes #1111

Comment thread static/debug.html Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you use window.console.log as in the other places?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@cironunes
Copy link
Copy Markdown
Member

Otherwise LGTM

Comment thread static/debug.html
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why you remove print skipped test? ('SKIPPED testSuite description' line 36)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Such tests talk about problems in code(test code, source code).
Usually you have to either fix the skipped test or delete.

And such annoying mechanism makes you pay attention to such tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed, these annoying messages force you to pay attention to tests that you have deliberately marked as not important. The deliberate act of marking tests to be SKIPPED is a signal that Karma should obey. The common case of marking tests to be skipped is the use of ddescribe() or iit() to isolate a single suite or test for debugging or analysis. But such debugging or analysis is more difficult than necessary when the console is filled with hundreds of lines of SKIPPED tests.

Occasionally a developer uses xit() to skip a single test while investigating some other problem. The summary line at the end of the Karma run reminds the developer to return to this case.

Before: hundreds of SKIPPING lines in console.log.
After: A single summary line with a count.

Closes karma-runner#1111
@sylvain-hamel
Copy link
Copy Markdown
Contributor

I like this change. LGTM

@vojtajina
Copy link
Copy Markdown
Contributor

I think this is good as well. When you do iit() you get tons of "SKIPPED" logs in the console which makes it hard to see anything else...

@vojtajina vojtajina merged commit a01100f into karma-runner:master Jul 11, 2014
@johnjbarton johnjbarton deleted the skip-skipped branch December 23, 2020 20:14
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.

With lots of tests, SKIPPING in console is tediously verbose.

5 participants