sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 517 forks source link

Document that the testname has to be unique #125

Open Andy1978 opened 9 years ago

Andy1978 commented 9 years ago

Consider this

@test "foo" {
  run echo 0
  [ "$output" -eq 0 ]
}

@test "foo" {
  run echo 0
  [ "$output" -eq 1 ]
}

this fails twice because the second one overwrites the first test. I haven't found any hint, that the testname has to be unique