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

Browser tests #246

Merged
merged 11 commits into from Jan 8, 2019
Merged

Browser tests #246

merged 11 commits into from Jan 8, 2019

Conversation

alexjeffburke
Copy link
Member

This PR ports the test suite to the browser and adds a karma based headless setup.

test/common/browser.js Outdated Show resolved Hide resolved
@coveralls
Copy link

Pull Request Test Coverage Report for Build 968

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.5%) to 91.779%

Files with Coverage Reduction New Missed Lines %
bootstrap-unexpected-markdown.js 3 72.73%
Totals Coverage Status
Change from base Build 962: -0.5%
Covered Lines: 521
Relevant Lines: 551

💛 - Coveralls

1 similar comment
@coveralls
Copy link

Pull Request Test Coverage Report for Build 968

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.5%) to 91.779%

Files with Coverage Reduction New Missed Lines %
bootstrap-unexpected-markdown.js 3 72.73%
Totals Coverage Status
Change from base Build 962: -0.5%
Covered Lines: 521
Relevant Lines: 551

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jan 6, 2019

Pull Request Test Coverage Report for Build 972

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.5%) to 91.751%

Files with Coverage Reduction New Missed Lines %
src/index.js 2 92.77%
Totals Coverage Status
Change from base Build 970: -0.5%
Covered Lines: 519
Relevant Lines: 548

💛 - Coveralls

This test appears to have pre-existing problems but endure it works.

It appears however that it cannot function in the browser because
the DOMImplementation property cannot be overridden - thus skip it
in that environment.
Rearrange things to have only a single copy of common node glue.
Note that there is an issue somewhere around overwriting the
preferred output width which we sidestep by arranging the various
test targets to run in separate processes.
@sunesimonsen
Copy link
Member

This is really great! We should setup the test matrix like unexpected, there is no reason to run the browser tests for all Node versions. But I can help with that if you want me too.

I also want to run this on BrowserStack in IE11, but I can make a separate PR for that as this is merged.

@alexjeffburke alexjeffburke merged commit 2ad0a31 into master Jan 8, 2019
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.

None yet

4 participants