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

feat: print coverage counters in the reporter #74

Open
wants to merge 1 commit into
base: master
from

Conversation

@bahmutov
Copy link
Contributor

@bahmutov bahmutov commented Sep 10, 2019

To quickly see the coverage after each test

Screen Shot 2019-09-10 at 10 01 00 AM

I think it looks kind of nice, here is TodoMVC

Screen Shot 2019-09-10 at 10 08 49 AM

@bahmutov bahmutov requested a review from flotwig Sep 10, 2019
return null
// count current code coverage
const counters = {
s: 0,

This comment has been minimized.

@flotwig

flotwig Sep 10, 2019
Member

Instead of s, f, b, could statements, functions, branches be used instead? The short names are kinda obscure

This comment has been minimized.

@bahmutov

bahmutov Sep 10, 2019
Author Contributor

good point, I will keep the one letter properties, since they match the coverage object properties, but will add comments

return
}
cy.task('combineCoverage', coverage).then(response => {
cy.log(`**${response.covered.s}**/**${response.total.s}** statements`)

This comment has been minimized.

This comment has been minimized.

@bahmutov

bahmutov Sep 10, 2019
Author Contributor

good observation about logs test, I might start creating test subfolders with test projects. It will be hard to test everything since most of the stuff happens after each or after all tests

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.