From 597c2b5610efc372ab97a4d08ec9409ad3f0ab46 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Sat, 25 Mar 2017 14:39:50 +0100 Subject: [PATCH] [TASK] add automatic testing --- .test-coverage | 0 README.md | 3 ++- cmd/rezension/main_test.go | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) mode change 100644 => 100755 .test-coverage create mode 100644 cmd/rezension/main_test.go diff --git a/.test-coverage b/.test-coverage old mode 100644 new mode 100755 diff --git a/README.md b/README.md index 82b018a..e1cee42 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,5 @@ https://gitlab.com/matthiasstock/monolith -[![Build Status](https://travis-ci.org/genofire/hs_master-kss-monolith.svg?branch=master)](https://travis-ci.org/genofire/hs_master-kss-monolith) +[![Build Status](https://travis-ci.org/genofire/hs_master-kss-monolith.svg?branch=master)](https://travis-ci.org/genofire/hs_master-kss-monolith) +[![Coverage Status](https://coveralls.io/repos/github/genofire/hs_master-kss-monolith/badge.svg?branch=master)](https://coveralls.io/github/genofire/hs_master-kss-monolith?branch=master) diff --git a/cmd/rezension/main_test.go b/cmd/rezension/main_test.go new file mode 100644 index 0000000..8554a10 --- /dev/null +++ b/cmd/rezension/main_test.go @@ -0,0 +1,12 @@ +package main + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestNothing(t *testing.T) { + assert := assert.New(t) + assert.True(true, "test testing") +}