jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Tests getting added to config.queue twice? #140

Closed Gowiem closed 10 years ago

Gowiem commented 10 years ago

I've just breakpoint'd my way through my tests to find out that test files are getting pushed onto the config.queue in the synchronize method twice (L#1406 in teaspoon-qunit.js w/ teaspoon-0.7.7). This then runs the test and it's setup/teardown methods twice, which for my purposes (opening/closing a websocket, restarting emberjs, mocking server) is scaring me a bit and making me think I'm doing something wrong.

I'm wondering if this is expected functionality or if it is something to do with my test environment? I've seen that this has popped up as an issue before on guard-teaspoon but that seems to be specific to the guard plugin and it's regex matcher.

Any ideas?

jejacks0n commented 10 years ago

No ideas.. :-/ Have you figured out what was going on?

jejacks0n commented 10 years ago

I suspect this is due to an update to qunit, but would love someone to confirm this as I don't personally use qunit and all the spec specs for qunit are still passing.

Gowiem commented 10 years ago

Issue has seemed to have gone away suddenly. Never figured out what the issue was. Sorry about that.