Skip to content
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

Unable to run Dartium coverage on OS X? #38

Closed
travissanderson-wf opened this issue Dec 3, 2014 · 7 comments
Closed

Unable to run Dartium coverage on OS X? #38

travissanderson-wf opened this issue Dec 3, 2014 · 7 comments

Comments

@travissanderson-wf
Copy link

I am maybe missing something but it appears that you can't actually run Dartium coverage from OS X. Homebrew-installed dartium is actually just a bash script:

#!/bin/bash
open "/usr/local/Cellar/dartium/1.8.0/Chromium.app" "$@"

so the flag --remote-debugging-port=NNNN is not passed in. Trying to open the executable directly, the flag doesn't seem to have any effect:

$ /usr/local/Cellar/dartium/1.8.0/Chromium.app/Contents/MacOS/Chromium --remote-debugging-port=8050

Is there some other way to run coverage thru Dartium? The majority of this project's tests depend on dart:html so we can't run coverage without running in Dartium.

@travissanderson-wf
Copy link
Author

open has an --args option to forward arguments to the executable, but that also doesn't seem to be working.

@zoechi
Copy link

zoechi commented Dec 4, 2014

What do you expect to happen?
What happens when you run Chromium this way and afterwards run coverage?

@travissanderson-wf
Copy link
Author

Chromium doesn't seem to be receiving the --remote-debugging-port=8050 argument and so it doesn't ever connect with the coverage server, so I don't get anything in my output coverage.json.

@zoechi
Copy link

zoechi commented Dec 4, 2014

Have you tried the other way around - starting Chromium and only afterwards starting coverage?

@travissanderson-wf
Copy link
Author

Yes, same result

@travissanderson-wf
Copy link
Author

I have no problems running coverage using the command line VM but when I try to launch Dartium and then navigate to my test runner, it doesn't generate coverage. However, if I open a browser tab with localhost:8050 it definitely loads up the remote debugging interface, so I'm not sure what is going wrong here.

@travissanderson-wf
Copy link
Author

It turns out due to using IntelliJ there was an extension conflict, so using --disable-extensions resolved the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants