-
Notifications
You must be signed in to change notification settings - Fork 2
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
I am getting not ok - timeout #3
Comments
Thanks for the feedback! With the latest version of
I'm running node 4.2 if that makes a difference. Could you create a PR with the failing test to make sure it's reproducible? |
I am on node 0.12.2 and even with 4.0.0 the output is the same:
|
Without a test case it's not really possible to reproduce this. Maybe it's a windows issue (seeing a |
I sort of reproduced the problem. It doesn't timeout (Banana PI doesn't count, right?), but it does take a lot of time to finish. Node 4.4.0, deps up-to-date. Here's a test
It takes whooping 6 seconds to run this test: $ node_modules/.bin/babel-tap test/dummy.js test/dummy.js ......................................... 1/1 6s total ................................................. 1/1 1 passing (6s) ok Now compare this to plain tap tests:
It's 20 times faster! 😕 $ node_modules/.bin/tap test/dummy.js test/dummy.js ......................................... 1/1 total ................................................. 1/1 1 passing (325.475ms) ok |
Seems like babel-cli is the bottleneck here. How can we speed it up? $ time node_modules/.bin/babel-node test/dummy.js TAP version 13 # Subtest: Dummy test ok 1 - Math test 1..1 ok 1 - Dummy test # time=12.708ms 1..1 # time=37.019ms real 0m5.519s user 0m5.104s sys 0m0.576s |
Comments in this SO question helped me speed up babael-cli. It's still rather slow, as processing each file takes 1 second. Is it possible to process all files simultaneously? Currently, if there are 15 test files, it will take ~20s to run the tests |
I'm afraid that's part of how |
Now |
@kapooostin Can you find out why? |
using
babel-tap src/specs/index.js
index.js
The text was updated successfully, but these errors were encountered: