Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bats test fails when output dir exists #583

Closed
AirQuick opened this issue Jul 12, 2019 · 1 comment · Fixed by #717
Closed

Bats test fails when output dir exists #583

AirQuick opened this issue Jul 12, 2019 · 1 comment · Fixed by #717
Assignees
Milestone

Comments

@AirQuick
Copy link
Member

#582 (comment)

If you earlier ran tests manually..., then remove the inner xspec folder

*nix

~/test/xspec/test$ ls -d xspec
xspec
~/test/xspec/test$ ./run-bats.sh 
 ✗ invoking xspec without arguments prints usage
   (from function `setup' in test file xspec.bats, line 24)
     `mkdir ../test/xspec' failed
   mkdir: cannot create directory ‘../test/xspec’: File exists

Windows

C:\test\xspec\test>dir xspec? /a:d /b
xspec

C:\test\xspec\test>run-bats.cmd
=== START TEST CASES ================================================
CASE #1: invoking xspec without arguments prints usage
A subdirectory or file ..\test\xspec already exists.
...FAIL: Failed to mkdir: ..\test\xspec

Maybe test/run-bats.* should remove the folders beforehand.

@AirQuick AirQuick added this to the v1.5.0 milestone Sep 8, 2019
@AirQuick AirQuick self-assigned this Nov 8, 2019
@AirQuick
Copy link
Member Author

AirQuick commented Nov 9, 2019

@xspec/xspec
Will be fixed by #717

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant