What steps will reproduce the problem?
1. Install shunit2 via homebrew (I'm on OS X 10.8.*): $ brew install shunit2
2. Verify install:
../Cellar/shunit2/2.1.6/INSTALL_RECEIPT.json
../Cellar/shunit2/2.1.6/bin/shunit2
3. Create simple test:
----- script -----
#!/bin/bash
# tests/myFunc.sh
testMyFunc() {
assertEquals 1 1 || return
}
shunit2
----- /script -----
4. Run test: $ ./tests/myFunc.sh
What is the expected output? What do you see instead?
EXPECTED:
testMyFunc
Ran 1 test.
OK
ACTUAL:
Ran 0 tests.
OK
What version of the product are you using? Can you provide the output from
the lib/versions script included with the source?
- Using shunit v2.1.6
- Only binary is included from homebrew install
Please provide any additional information below.
As a test, I downloaded the .tgz file for 2.1.6 and then replaced the shunit2
call with a source call pointing to the absolute path of the shunit2 binary.
Doing that provided the expected results. However, I would much prefer using
the binary version as it is path-independent.
Am I just using the binary incorrectly? Is the homebrew install flawed?
Original issue reported on code.google.com by callmeSm...@gmail.com on 19 Nov 2013 at 8:52
Original issue reported on code.google.com by
callmeSm...@gmail.com
on 19 Nov 2013 at 8:52