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
tap needs to be invoked differently on windows and linux #128
Comments
wow, didn't see that you pushed a new version. Just updated and it works fine in windows (even took care of the weird spawn error after the tests, I was seeing). Now I'm just waiting for confirmation on travis before closing this one. |
I think |
tap test/*.js works. I just updated tap from 0.4 to 1.0 and moved all .js files, that was not tests, into a sub directory. As you can see on travis, it is working. I got another issue with a missing file, that works on windows but not linux. I don't think it has anything to do with tap, though. |
and yes, |
hmm.. I just test on linux via cloud9 and |
@isaacs here is the failed test case: https://travis-ci.org/jfhbrook/node-ecstatic/jobs/62297377 |
Running But in jfhbrook/node-ecstatic, you've got a TON of stuff in test/public/ that is not tests. It's broken symlinks and text files and other junk. So, yeah, running tap on that stuff breaks. I suppose it could be made to skip over things at are not either js or executables, patch welcome. |
Even then, this will always fail:
So, the requirement would be for |
ahh ok. I only meant to run the test in the test/ directory. In v0.4, it seemingly worked. I just realized that it was giving false test numbers. Everything should be fixed in my latest commit, though. The d.js broken symlink put me off for a while. Possibly a windows side-effect - not sure. But it was easily detectable and fixable once I got it on the cloud9 box. |
@dotnetCarpenter Right, but how would tap know what is a test and what isn't? It just arbitrarily crawls all the dirs it encounters. In this case |
well, tap could look for tap.test. I'm not sure if it's worth the trouble to implement. Ractive does something like that with esprima but also uses regex for that in the component loader. But I really think it's a documentation issue not a missing feature. |
Yeah, I'm not gonna have the tap runner read tests and try to figure out if they're loading or calling tap. That's both too magical and a ton of work. Besides, you might have something that outputs TAP format, but isn't actually loading Doc patch welcome. |
tap
needs to be invoked differently on windows and linux, which means thatnpm test
fails to be cross-platform.Example: in jfhbrook/node-ecstatic I can write
"test": "tap test/"
and it works on windows but not linux and the other way. I can write"tap test/*.js"
and it works on linux but not in windows.I even think it is a regression. I'm not 100% sure but I believe
tap test/*.js
used to work in Windows back in v0.4The text was updated successfully, but these errors were encountered: