Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Jest coverage#2417

Merged
clarkbw merged 3 commits into
firefox-devtools:masterfrom
clarkbw:jest-coverage
Mar 23, 2017
Merged

Jest coverage#2417
clarkbw merged 3 commits into
firefox-devtools:masterfrom
clarkbw:jest-coverage

Conversation

@clarkbw

@clarkbw clarkbw commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

Associated Issue: #2319

Summary of Changes

  • add test-coverage script
  • add coverage reporting to circleci and upload to codecov

Comment thread package.json
"lint-md": "remark -q *.md src/**/*.md configs/*.md docs/**/*.md",
"lint-fix": "yarn lint-js -- --fix",
"test": "jest --forceExit",
"test-coverage": "yarn test -- --coverage",

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.

I wasn't sure if we wanted add coverage to the default test script instead of a creating a new one.

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.

sure - this is probably fine. we can always update this later when we're using flow as well

Comment thread package.json
"lint-md": "remark -q *.md src/**/*.md configs/*.md docs/**/*.md",
"lint-fix": "yarn lint-js -- --fix",
"test": "jest --forceExit",
"test-coverage": "yarn test -- --coverage",

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.

sure - this is probably fine. we can always update this later when we're using flow as well

@jasonLaster

Copy link
Copy Markdown
Contributor

Should we see codecov here?

@clarkbw

clarkbw commented Mar 22, 2017

Copy link
Copy Markdown
Contributor Author

Should we see codecov here?

Yes, but I turned it off previously since we weren't getting flow coverage. Just turned it back on now. Maybe if I close and reopen this it'll happen...

@clarkbw clarkbw closed this Mar 22, 2017
@clarkbw clarkbw reopened this Mar 22, 2017
@clarkbw

clarkbw commented Mar 23, 2017

Copy link
Copy Markdown
Contributor Author

Adding a fix for the lint issue that I believe came from #2420

@jasonLaster

Copy link
Copy Markdown
Contributor

ahh - thanks

}

accordion .header-buttons button::-moz-focus-inner {
.accordion .header-buttons button::-moz-focus-inner {

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.

I also added a . here which is what I believe is needed and was just missed from copy / pasta

@clarkbw

clarkbw commented Mar 23, 2017

Copy link
Copy Markdown
Contributor Author

Coverage is now being reported in CI.

screen shot 2017-03-23 at 10 42 15 am

And I'm seeing the JSON artifact: https://400-55521579-gh.circle-artifacts.com/0/tmp/circle-junit.y1G4yTz/jest-coverage/coverage-final.json

@clarkbw clarkbw merged commit afe8b70 into firefox-devtools:master Mar 23, 2017
@clarkbw clarkbw deleted the jest-coverage branch March 23, 2017 14:43
@montogeek

Copy link
Copy Markdown
Contributor

Cool!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants