Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Testing bats on I2 Jenkins host
Jim Van Fleet committed Jul 13, 2016
1 parent 69af373 commit 2db97fc
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
@@ -7,5 +7,8 @@ node {

sh './build_image.sh'

stage 'Tests'

sh 'bats tests/base.bats'

}
6 changes: 6 additions & 0 deletions tests/base.bats
@@ -0,0 +1,6 @@
#!/usr/bin/env bats

@test "addition using bc" {
result="$(echo 2+2 | bc)"
[ "$result" -eq 4 ]
}

0 comments on commit 2db97fc

Please sign in to comment.