From 966123353d86e1e15ce3bcfd1df96cc472b84af0 Mon Sep 17 00:00:00 2001
From: Venkat Malladi <venkat.malladi@utsouthwestern.edu>
Date: Thu, 19 Mar 2020 22:23:42 -0500
Subject: [PATCH] testing using bats.

---
 .gitlab-ci.yml                   | 3 ++-
 workflow/tests/plot_profile.bats | 9 +--------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6782976..0f90138 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,8 @@ stages:
 user_configuration:
   stage: unit
   script:
-  - pytest -m unit
+  - module load singularity/3.0.2
+  - singularity run docker://bats/bats:v1.1.0 --tap workflow/tests/plot_profile.bats
   - pytest -m unit --cov=./workflow/scripts
 
 astrocyte:
diff --git a/workflow/tests/plot_profile.bats b/workflow/tests/plot_profile.bats
index 63fd7dd..a1b78a3 100644
--- a/workflow/tests/plot_profile.bats
+++ b/workflow/tests/plot_profile.bats
@@ -1,6 +1,6 @@
 #!/opt/bats/libexec/bats-core/ bats
 
-profile_script="./worflow/scripts/plot_profile.sh"
+profile_script="./workflow/scripts/plot_profile.sh"
 
 setup() {
   module load deeptools/2.5.0.1
@@ -9,11 +9,4 @@ setup() {
 @test "Test deeptools present" {
   source ${profile_script}
   run check_tools
-  assert_success
-}
-
-@test "Test matrix generation" {
-  source ${profile_script}
-  run check_tools
-  assert_success
 }
-- 
GitLab