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: Implemented Puppeteer to V8 Class #4

Merged
merged 5 commits into from
Feb 24, 2018
Merged

feat: Implemented Puppeteer to V8 Class #4

merged 5 commits into from
Feb 24, 2018

Conversation

vkoves
Copy link
Contributor

@vkoves vkoves commented Feb 24, 2018

Implemented the PuppeteerToV8 class with a setter function for setting the coverageInfo, and a convertCoverage function that uses a map function to go through and convert from the Puppeteer to V8 format. Also implemented the tests that are handled by PuppeteerToV8 without the need of OutputFiles (which will handle file renaming and inline JS naming).

@vkoves vkoves requested a review from bcoe February 24, 2018 23:02
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+9.6%) to 30.303%

Totals Coverage Status
Change from base Build 10: 9.6%
Covered Lines: 10
Relevant Lines: 33

💛 - Coveralls

Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

this looks good to me, there are a couple more test cases we might want to fill in but I'm comfortable with waiting until Robert's work is done.

return this.coverageInfo.map(coverageItem => {
return {
scriptId: id++,
url: coverageItem.url,
Copy link
Member

Choose a reason for hiding this comment

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

once Robert finishes his work, we'll want to store the final path that will be saved to disk rather than the original URL.

I'm fine with landing it without this at the outset, just noting here that we need to update.

@bcoe bcoe merged commit 327c1ef into master Feb 24, 2018
@bcoe bcoe deleted the puppeteer-to-v8 branch February 24, 2018 23:29
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.

3 participants