From 03baae91dc79ac4a260c1dc117d8b570ed28bc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=AAnnis=20Dantas?= Date: Tue, 8 May 2018 23:27:15 -0300 Subject: [PATCH] ci(travis): Use test-unit task :snowflake: I've created a new task called test-unit, that tests all tests available, except acceptance tests, since they require database manual initialization. --- .travis.yml | 2 +- Taskfile.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0f71e35..4f82064 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,4 +17,4 @@ install: beforeScript: - sleep 15 script: - - task test \ No newline at end of file + - task test-unit \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml index d2688d8..e7785bd 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -26,6 +26,10 @@ cover: - goverage ./... - go tool cover -html=coverage.out +test-unit: + deps: [test-connecter, test-mongo] + desc: Run all unit tests. + test: deps: [test-connecter, test-mongo, test-acceptance] desc: Run all tests.