• Stars
    star
    312
  • Rank 134,133 (Top 3 %)
  • Language
    Elixir
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Open source code coverage history webapp

OpenCov

Build Status Coverage Status

OpenCov is a self-hosted opensource test coverage history viewer. It is (mostly) compatible with coveralls, so most coverage tools will work easily.

Demo and screenshots

A demo is available at http://demo.opencov.com, you can create an account or login with

For "security" reasons, the user is not admin. NOTE: the demo is on a Heroku free dyno, so it may not always be available and might be very slow.

Projects list

projects

Project page

project page

Build page

build page

Coverage page

coverage page

Admin panel

admin panel

Deploying the application

Configuring

First, you will need to at least setup a database To configure the app, create a local.exs file and override the configuration you need. Check config/local.sample.exs to see the available configurations.

Using docker

With an existing database

If you already have a database to use, you can simply start the application using docker:

Setup database, run migrations and seeds

$ docker run --rm -v /absolute/path/to/local.exs:/opencov/config/local.exs danhper/opencov mix ecto.setup

Execute Phoenix Server

$ docker run -v /absolute/path/to/local.exs:/opencov/config/local.exs danhper/opencov

This will start the server on the port you set in local.exs.

With docker-compose

If you do not have a database, you can start one with docker and docker-compose. See docker-compose.yml for a sample docker-compose.yml file.

Once you have your docker-compose.yml and local.exs ready, you can run

$ docker-compose run opencov mix ecto.setup
$ docker-compose up

Manually

$ git clone https://github.com/danhper/opencov.git
$ cd opencov
$ cp /path/to/local.exs config/local.exs # local.exs must be in the `config` directory of the app

$ npm install # (or yarn install)
$ mix deps.get
$ mix ecto.setup
$ mix phoenix.server

This should start OpenCov at port 4000.

If you want to setup the server for production, you will need to run the above commands with MIX_ENV=prod and to run

$ mix assets.compile

before starting the server.

Deploying to Heroku

You should also be able to deploy to Heroku by simply git pushing this repository. You will need to set the following environment variables using heroku config:set

  • OPENCOV_PORT
  • OPENCOV_SCHEME
  • SECRET_KEY_BASE
  • SMTP_USER
  • SMTP_PASSWORD

You will need to run

$ heroku run mix ecto.setup

before you can use your application.

Default user

In all setups, mix ecto.setup creates the following admin user

You should use it for your first login and the change the email and password.

Sending test metrics

A few languages are documented in the wiki. For other languages, coveralls instructions should work out of the box, you just need to set the URL to your OpenCov server and to explicitly set the token, even when using Travis.

Development status

The application is more or less stable. I have been using it for a little while now with coverage data from the 4 languages in the Wiki.

The main missing feature is the ability to send coverage status on pull requests. The implementation is started in the integrations branch but I could not find the time to finish it yet.

I am open to any other suggestions, and help is very welcome.

More Repositories

1

atomic-chrome

Edit Chrome textareas in Atom
JavaScript
916
star
2

fundle

A minimalist package manager for fish shell
Shell
363
star
3

fish-ssh-agent

Shell
288
star
4

ex_cli

User friendly CLI apps for Elixir
Elixir
214
star
5

python-i18n

Easy to use i18n library for Python
Python
201
star
6

structomap

Easily and dynamically generate maps from Go static structures
Go
141
star
7

pushex

Push notifications for Elixir
Elixir
104
star
8

elixir-browser

Browser detection for Elixir
Elixir
95
star
9

atomic-chrome-atom

Edit Chrome textareas in Atom
CoffeeScript
93
star
10

elixir-temp

Temporary files and directories for Elixir
Elixir
74
star
11

plug-navigation-history

Elixir plug to keep navigation history
Elixir
71
star
12

elixir-git-cli

A simple interface to Git CLI for Elixir
Elixir
68
star
13

phoenix-active-link

Elixir/Phoenix view helper to manage "active" state of a link
Elixir
63
star
14

elixir-web-push-encryption

Elixir implementation of Web Push Payload encryption.
Elixir
59
star
15

eclair

A Solidity interpreter
Rust
49
star
16

bigcode-tools

Set of tools to help working with "Big Code"
Python
43
star
17

rust-simple-nn

Simple neural network implementation in Rust
Rust
34
star
18

seedex

Seed data generation for Ecto
Elixir
29
star
19

securerandom

Go
25
star
20

evm-analyzer

Code for Smart Contract Vulnerabilities: Vulnerable Does Not Imply Exploited
OCaml
23
star
21

fish-fastdir

Fast directory navigation for fish
Shell
19
star
22

suplearn-clone-detection

Cross language clone detection using supervised learning
Python
18
star
23

asdf-exec

Native command to run asdf shims
Go
16
star
24

node-git-cli

Simple CLI like git interface for Node.
CoffeeScript
16
star
25

defi-plf-analysis

Code and data for the paper: DeFi Protocols for Loanable Funds: Interest Rates, Liquidity and Market Efficiency
Jupyter Notebook
14
star
26

scalog

Datalog implementation in Scala.
Scala
12
star
27

atom-align-regexp

Regexp based alignment for Atom
JavaScript
11
star
28

koa-police

Policy based authentication library for Koa
JavaScript
9
star
29

fontawesome-icons-list

Fontawesome icons list
JavaScript
9
star
30

blockchain-analyzer

Tool to fetch and analyze blockchain transactions
Go
9
star
31

fish-kubectl

Shell
8
star
32

oh-my-fish-core

oh-my-fish core library extracted
Shell
7
star
33

sigma-bower

Bower repository for SigmaJS
JavaScript
6
star
34

dotfiles

TeX
5
star
35

ecto-secure-password

has_secure_password for Ecto models
Elixir
5
star
36

ocaml-monads

OCaml
5
star
37

fish-completion-helpers

Fish helper functions to simplify completions
Shell
5
star
38

go-sqs-client

Go
4
star
39

wedding

Simple webapp to manage guests and invitations for my wedding with Ai.
Ruby
4
star
40

ethereum-tools

Python
4
star
41

simple-bitcoin-parser

Simple Python Bitcoin parser/formatter implementation
Python
4
star
42

phd-thesis

TeX
3
star
43

deepsentence

和文文書からの要点抽出
Python
3
star
44

scala-simple-compiler

Scala
3
star
45

flashcards-cli

Text-based flashcards
OCaml
3
star
46

code-battle

HTML
3
star
47

fish-nvm

nvm wrapper for fish
Shell
3
star
48

fish-asdf

fish plugin for asdf vm
Shell
2
star
49

projare

Sample app using Elixir, Phoenix and RiotJS
JavaScript
2
star
50

sublime-file-commands

Commands to work with files in Sublime Text
Python
2
star
51

advent-2022

Rust
2
star
52

elixir-logger-sample

Elixir
2
star
53

meditable

WIP: markdown <-> html
JavaScript
2
star
54

easter-egg-hunt

Ruby
1
star
55

websocket-rails-bower

1
star
56

master-thesis

A study of machine learning approaches to cross-language code clone detection
TeX
1
star
57

advent-2020

Haskell
1
star
58

advent-2023

F#
1
star
59

vim-config

Vim Script
1
star
60

go-ethereum-customized

Fork of the official geth client
Go
1
star
61

word-frequency-analyzer

Simple word frequency analyzer with JavaFX rendering.
Scala
1
star
62

bachelor-thesis

Repository for my bachelor thesis
TeX
1
star
63

js-easy-params

Decorator for JS functions with optional arguments
JavaScript
1
star
64

scala-x-server

System to run an X server in a web browser
Scala
1
star
65

jsurl_ex

Elixir
1
star
66

tokyo-ex-1-slides

HTML
1
star
67

erlang-sqs-client

Erlang
1
star
68

revealjs-jade-starter

HTML
1
star
69

sublime-rails-status-snippets

ST2/3 snippets for HTTP codes symbols in RoR
Python
1
star
70

ansible-exrm

1
star
71

koa-police-jwt

JWT strategy for koa-police
JavaScript
1
star
72

django-twitter-auth-sample

Python
1
star
73

aleth

C++
1
star