# lcov-server

> 🎯 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.herokuapp.com/badge/github/gabrielcsapo/lcov-server.svg)](https://lcov-server.herokuapp.com/coverage/github/gabrielcsapo/lcov-server)
[![Dependency Status](https://david-dm.org/gabrielcsapo/lcov-server.svg)](https://david-dm.org/gabrielcsapo/lcov-server)
[![devDependency Status](https://david-dm.org/gabrielcsapo/lcov-server/dev-status.svg)](https://david-dm.org/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)]()

<!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->

- [lcov-server](#lcov-server)
- [What is this?](#what-is-this)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
	- [Upload](#upload)
	- [Server](#server)

<!-- /TOC -->

# What is this?

It's a lcov server! It stores lcov reports and categorizes them based on their origin repo.

# Prerequisites

- `mongodb` installed
- `nodejs` installed

# Install

```
npm install lcov-server -g
```

# Usage

```
Usage: lcov-server [options]


Options:

  -V, --version          output the version number
  -u, --upload [server]  Set the url to upload lcov data too
  -s, --serve            Pass this option to startup a lcov-server instance
  -d, --db [db]          Set the db connection
  -h, --help             output usage information
```

## Upload

```
tap test --coverage-report=text-lcov | lcov-server --upload http://...
```

## Server

```
lcov-server --serve --db mongodb://localhost:32768/lcov-server
```
