Skip to content

Commit

Permalink
Testing bats on I2 Jenkins host
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Jul 13, 2016
1 parent 69af373 commit 2db97fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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.