-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
.only()
fails with asynchronous tests
#585
Comments
It's a bit tough to reproduce from here without the content of the scripts. |
Generally though, I'd expect browser tests to be always bundled into a single file, not directly loaded with a script tag? |
I can't bundle all my test files into a single file, I'm using I tried to do The only way I found to prevent the tests from running (i.e.
And catch when karma is started as such:
This is definitely not pretty, but that works. If you can find a better to do it, I take it :-) |
I'm not clear on why using karma precludes bundling; i've set up karma with a bundle before. I'm not familiar with tape-catch - but it seems like it's possible that it was last updated when tape was in v3, and thus breaking changes in v4 and v5 may have caused it not to work properly anymore. It's ofc also possible that tape-catch is working fine :-) I'm happy to try to change something in tape if that would help your use case, I'm just not clear on what that would be :-/ |
Maybe it's doable, I just couldn't figure out. But I think it is "better" to have tape support being ran when tests are not bundled.
I've the same problem without tape catch.
The problem is that the |
Or more simply, there is a |
Isn't that |
I wish but it does not work. Here is what's going on:
|
Hm, that seems like a bug with the “wait” functionality (cc @lohfu) |
i'll try to find some time this week to have a look! |
@lohfu have you had a chance to have a look ? |
@finetjul hi, sorry for the delay. unfortunately i'm an incredibly unreliable individual often falling into deep holes of darkness where i forget about the world around me and any commitments i have there. i've had a quick look at your problem now, and while it's near impossible without substantial work to reproduce your issue from the screenshots you have provided i think solving it could require even more quirky workarounds than my I find it slightly odd you provide screenshots of code instead of actual pasted code. I would like to try to reproduce your issue locally, do you think there is any chance to you could provide a simple repo or gist of a similar setup to help me see what's going on? |
If tests are added with
<script>
(which is the case with karma), thenextTick()
callback may be processed before loading a test that has the.only
property. In such case, the first tests will be executed.E.g.
Adding
defer
orasync
does not change anything.The text was updated successfully, but these errors were encountered: