Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielcsapo/lcov-server
🎯 A simple lcov server & cli parser
https://github.com/gabrielcsapo/lcov-server
coverage javascript lcov nodejs product testing
Last synced: 28 days ago
JSON representation
🎯 A simple lcov server & cli parser
- Host: GitHub
- URL: https://github.com/gabrielcsapo/lcov-server
- Owner: gabrielcsapo
- License: apache-2.0
- Created: 2017-01-17T21:38:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T19:12:13.000Z (over 3 years ago)
- Last Synced: 2024-04-28T19:22:51.243Z (7 months ago)
- Topics: coverage, javascript, lcov, nodejs, product, testing
- Language: JavaScript
- Homepage: https://gabrielcsapo.github.io/lcov-server
- Size: 8.8 MB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# lcov-server [[docs](https://gabrielcsapo.github.io/lcov-server)][[hosted](https://lcov-server.gabrielcsapo.com)]
> 🎯 A simple lcov server & cli parser
[![Npm Version](https://img.shields.io/npm/v/lcov-server.svg)](https://www.npmjs.com/package/lcov-server)
[![Build Status](https://travis-ci.org/gabrielcsapo/lcov-server.svg?branch=master)](https://travis-ci.org/gabrielcsapo/lcov-server)
[![Coverage Status](https://lcov-server.gabrielcsapo.com/badge/github/gabrielcsapo/lcov-server.svg)](https://lcov-server.gabrielcsapo.com/coverage/github/gabrielcsapo/lcov-server)
[![Dependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/lcov-server/status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/lcov-server)
[![devDependency Status](https://starbuck.gabrielcsapo.com/badge/github/gabrielcsapo/lcov-server/dev-status.svg)](https://starbuck.gabrielcsapo.com/github/gabrielcsapo/lcov-server#info=devDependencies)
[![npm](https://img.shields.io/npm/dt/lcov-server.svg)]()
[![npm](https://img.shields.io/npm/dm/lcov-server.svg)]()- [lcov-server](#lcov-server)
- [What is this?](#what-is-this)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Upload](#upload)
- [Server](#server)# What is this?
It's a lcov server! It stores lcov reports and categorizes them based on their origin repo.
# Prerequisites
- `postgres` installed
- `nodejs` installed# Install
```
npm install lcov-server -g
```# Usage
```
Usage: lcov-server [options]Commands:
upload, --upload, -u [server ] Set the url to upload lcov data too (default: http://localhost:8080)
serve, -s, --serve Pass this option to startup a lcov-server instance
version, -v, --version output the version number
help, -h, --help output usage informationOptions:
db, -d, --db [db] Set the db connection (default: postgres://localhost:5432/lcov-server)
parser, -p, --parser Set the parser value [lcov, cobertura, golang, jacoco], defaults to lcov (default: lcov)
basePath, -bp, --basePath The path that defines the base directory where the files that were covered will be located
```## Upload
```
tap test --coverage-report=text-lcov | lcov-server --upload http://...
```## Server
```
lcov-server --serve --db postgres://localhost:5432/lcov-server
```