Skip to content

Commit 3a92f20

Browse files
Update issue templates and README
1 parent dfc7e59 commit 3a92f20

File tree

6 files changed

+131
-1
lines changed

6 files changed

+131
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# LCOV viewer
2+
3+
Parses LCOV file and generates coverage tree view.
4+
5+
## Installation
6+
7+
This repository uses Yarn workspaces. Please use Yarn to
8+
9+
```
10+
> git clone https://github.com/eugenezinovyev/lcov-viewer.git
11+
> cd lcov-viewer
12+
> yarn
13+
> cd packages/app
14+
> yarn start
15+
```
16+
17+
## Istanbul report
18+
19+
The repository provides Istanbul report generator.
20+
```
21+
yarn add -D @lcov-viewer/istanbul-report~~~~
22+
```
23+
Please see docs [here](/packages/istanbul-report).
24+
25+
## Example
26+
27+
Open LCOV viewer in your browser and drop `lcov.info` file into the dropzone.
28+
29+
![image](https://user-images.githubusercontent.com/1678896/138569019-dba539b2-bc32-4bc0-8573-051e2fef64f4.png)
30+
![image](https://user-images.githubusercontent.com/1678896/138568915-ed3d5afb-c1a8-4a9a-a986-2d23a0ae447f.png)

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "lcov-viewer",
3+
"description": "LCOV viewer",
34
"version": "1.0.0",
45
"author": "Eugene Zinovyev <[email protected]>",
56
"license": "MIT",
@@ -45,5 +46,10 @@
4546
"webpack-bundle-analyzer": "^4.5.0",
4647
"webpack-cli": "^4.9.1",
4748
"webpack-dev-server": "^4.3.1"
49+
},
50+
"main": "index.js",
51+
"repository": {
52+
"type": "git",
53+
"url": "git+https://github.com/eugenezinovyev/lcov-viewer.git"
4854
}
4955
}

packages/istanbul-report/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# LCOV viewer Istanbul report
2+
3+
Generates coverage report
4+
5+
## Install
6+
7+
Install development dependency using NPM
8+
```
9+
npm install -D @lcov-viewer/istanbul-report
10+
```
11+
OR using YARN
12+
```
13+
yarn add -D @lcov-viewer/istanbul-report
14+
```
15+
Update your Jest config
16+
```js
17+
module.exports = {
18+
// ...
19+
coverageReporters: [
20+
'@lcov-viewer/istanbul-report'
21+
],
22+
// ...
23+
};
24+
```
25+
26+
## Demo
27+
![image](https://user-images.githubusercontent.com/1678896/138568915-ed3d5afb-c1a8-4a9a-a986-2d23a0ae447f.png)

packages/istanbul-report/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@
2424
},
2525
"files": [
2626
"lib/**/*.*"
27-
]
27+
],
28+
"directories": {
29+
"lib": "lib"
30+
},
31+
"description": "An Istanbul report to generate LCOV viewer report.",
32+
"repository": {
33+
"type": "git",
34+
"url": "https://github.com/eugenezinovyev/lcov-viewer.git",
35+
"directory": "packages/istanbul-report"
36+
}
2837
}

0 commit comments

Comments
 (0)