From 7775dcf9dba2a2d8dab0d4169ddda34af72e017a Mon Sep 17 00:00:00 2001
From: Markus Scheidgen <markus.scheidgen@gmail.com>
Date: Fri, 21 Sep 2018 08:57:58 +0200
Subject: [PATCH] Added coverage and badages.

---
 .gitlab-ci.yml       | 2 +-
 README.md            | 3 +++
 requirements-dev.txt | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c3253f5f9c..2ad8646b0c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,6 +43,6 @@ tests:
     NOMAD_ELASTIC_HOST: elastic
     NOMAD_MONGO_HOST: mongo
   script:
-    - pytest -sv tests/
+    - pytest --cov=nomad -sv tests/
   tags:
     - docker
diff --git a/README.md b/README.md
index 2cd37d806f..a789a078da 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,6 @@
+[![pipeline status](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/badges/master/pipeline.svg)](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/commits/master)
+[![coverage report](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/badges/master/coverage.svg)](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-FAIR/commits/master)
+
 This project tries and test approaches that might lead to an improved architecture for
 nomad@FAIR.
 
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 9e55a29b2c..388efce378 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -7,6 +7,7 @@ pylint-mongoengine
 pycodestyle
 pytest
 pytest-timeout
+pytest-cov
 rope
 mongomock
 
-- 
GitLab