paralleldrive / paralleldrive/riteway
nyc coverage shows 0%
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 40
- Avg merge
- 4h 53m
- Merged PRs (30d)
- 7
Description
i have been trying to use riteway, in one of my sideprojects. When trying to get it working with instanbul coverage report it shows 0% coverage.
I currently have only a single test.js file , it imports a class from another js file, and runs tests on it.
Output:
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
passed: 2, failed: 0 of 2 tests (4.1s)
package.json
"test": "riteway -r @babel/register -r @babel/polyfill src/**/*-test.js",
"coverage": "nyc npm run test | tap-nirvana",
.babelrc
{
"presets": [
[
"@babel/preset-env",
{
"targets": [
"last 2 versions",
"safari >= 7"
]
}
],
],
"plugins": ["istanbul"]
}
.nycrc
{
"extends": "@istanbuljs/nyc-config-babel"
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report with the package.json coverage command and the shown .babelrc and .nycrc configuration. Inspect how riteway, Babel, and nyc interact during the test run; done means the existing test.js execution produces nonzero coverage for the imported source file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100