-
Notifications
You must be signed in to change notification settings - Fork 410
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
wasm-pack test
running tests multiple times
#511
Comments
wasm-pack test
running tests multiple times
@chinedufn thanks for filing this! we'll take a look soon- i've assigned @fitzgen because he knows the most about the test command. i'll attempt to repro now and comment here with my experience. could you let us know what operating system youre on? it might not matter but it's always nice to have all the possible info! |
oh also- looks like you are running test on https://github.com/chinedufn/percy ? this may be an odd side effect of running the command in the workspace (again not totally sure, but some relevant info for sure!) |
can reproduce on my machine! Ashleys-MacBook-Pro-2:percy ag_dubs$ wasm-pack test crates/virtual-dom-rs --firefox --headless |
cool (i'm also on OSX and yeah is this a behavior you just started seeing happen in the workspace with 0.6.0? if that's the case, i would imagine that means the workspace is the culprit! (it'd be helpful to know if you just started seeing this and it wasn't happening before on a single crate, just to help eliminate some stuff) |
So it turns out that I was previously using the Sorry that's all I've got on that front - happy to provide any other info that might be useful though! |
no worries, no more info is a type of info still :) - glad to have you using wasm-pack! would love to hear if you have any other suggestions that may have come up during your migration! |
If I |
Hmmm thank you to both of you for looking into this! So a few quick things that I'm noticing in case it helps. The first time we see a batch of tests we're also printing the path to the
There is also slightly different copy. Second thing that I see is this pipe character in the output
From a quick search of the codebase the only pipe that I can find that gets printed out is in
Of course - absolutely no idea if any of this is at all relevant - just pointing out anything that might help y'all think about where this could be stemming from. |
I suspect it is just the output being printed twice, and not the tests actually being run twice. Will test this hypothesis later today. |
Also introduces testing of our CLI's output via `assert_cmd`. Expect some follow ups to get more of our testing infrastructure using this incredible crate! Fixes rustwasm#511
Also introduces testing of our CLI's output via `assert_cmd`. Expect some follow ups to get more of our testing infrastructure using this incredible crate! Fixes #511
Also introduces testing of our CLI's output via `assert_cmd`. Expect some follow ups to get more of our testing infrastructure using this incredible crate! Fixes #511
🐛 Bug description
My tests seems to be running multiple times in Firefox instead of just once.
🤔 Expected Behavior
Tests run once
👟 Steps to reproduce
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.6.0
rustc version: $ rustc 1.33.0-nightly (2d3e909e4 2018-12-22)
The text was updated successfully, but these errors were encountered: