-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin
committed
Feb 24, 2018
0 parents
commit 6b2deb5
Showing
9 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
package-lock.json | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# puppeteer-to-istanbul | ||
|
||
convert from puppeteer's coverage output to a format that can be used by istanbul reports | ||
|
||
## Plan of Action | ||
|
||
1. build a shim that lets us run arbitrary JavaScript code in puppeteer ( | ||
we can add this as a tool in the `./bin` folder). | ||
2. write unit-tests for converting between puppeteer and v8 format. | ||
3. write unit tests that verify outputting JavaScript files to disk. | ||
4. profit. |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// output JavaScript bundled in puppeteer output to format | ||
// that can be eaten by Istanbul. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// convert from puppeteer format to v8. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "puppeteer-to-istanbul", | ||
"version": "1.0.0", | ||
"description": "convert from puppeteer's coverage output to a format that can be used by istanbul reports", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "nyc --all mocha test/*.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/istanbuljs/puppeteer-to-istanbul.git" | ||
}, | ||
"keywords": [ | ||
"istanbul", | ||
"puppeteer", | ||
"convert", | ||
"coverage" | ||
], | ||
"author": "Hackillinois 2018, team Istanbul", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/istanbuljs/puppeteer-to-istanbul/issues" | ||
}, | ||
"homepage": "https://github.com/istanbuljs/puppeteer-to-istanbul#readme", | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"mocha": "^5.0.1", | ||
"nyc": "^11.4.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require('chai').should() | ||
|
||
describe('puppeteer-to-v8', () => { | ||
it('translates range data appropriately', () => { | ||
'hello world'.should.equal('hello world') | ||
}) | ||
}) |