bats icon indicating copy to clipboard operation
bats copied to clipboard

Can't run tests anymore

Open benmarten opened this issue 7 years ago • 2 comments

Something broke on my machine, so running my tests leads to:

/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test: line 327: /var/folders/rs/s_q1py2d54q4g9bk1h7vg95r0000gn/T/bats.30926.src: No such file or directory

Any idea whats wrong?

benmarten avatar Jun 07 '17 22:06 benmarten

Are you still encountering this issue? What makes you think it's an issue with Bats? Seems like something else changed on your system.

dimo414 avatar Aug 19 '17 03:08 dimo414

I've found this too. On a helper script sourced from tests files I had:

export FALSE=1

After changing it to a more elegant way:

export FALSE=$(false;echo $?)

All my tests fails with a similar line as the author. FTR, using a similar expression for true:

export TRUE=$(true;echo $?)

Does not break tests.

lucasvc avatar Nov 10 '17 08:11 lucasvc