Skip to content
Snippets Groups Projects
Commit 96612335 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

testing using bats.

parent 20e127c3
Branches
Tags
1 merge request!67Resolve "Rename Plot profile to be consistent with naming"
Pipeline #6290 failed with stages
in 17 seconds
...@@ -14,7 +14,8 @@ stages: ...@@ -14,7 +14,8 @@ stages:
user_configuration: user_configuration:
stage: unit stage: unit
script: 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 - pytest -m unit --cov=./workflow/scripts
astrocyte: astrocyte:
......
#!/opt/bats/libexec/bats-core/ bats #!/opt/bats/libexec/bats-core/ bats
profile_script="./worflow/scripts/plot_profile.sh" profile_script="./workflow/scripts/plot_profile.sh"
setup() { setup() {
module load deeptools/2.5.0.1 module load deeptools/2.5.0.1
...@@ -9,11 +9,4 @@ setup() { ...@@ -9,11 +9,4 @@ setup() {
@test "Test deeptools present" { @test "Test deeptools present" {
source ${profile_script} source ${profile_script}
run check_tools run check_tools
assert_success
}
@test "Test matrix generation" {
source ${profile_script}
run check_tools
assert_success
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment