4

I'm running dart test using test library.

pub run test -p dartium

When this command is executed I'm getting below error, I have dartium and dart sdk downloaded and in system path.

Failed to start Dartium: No such file or directory
  Command: dartium --user-data-dir=/tmp/dart_test_cwDGGO 
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
ashokd
  • 393
  • 2
  • 11
  • What operating system? Does the folder `/tmp` exist? Do you have permissions to create subfolders in `/tmp`? Have you tried to launch Dartium manually with this command? – Günter Zöchbauer Jun 05 '15 at 20:50
  • I'm on ubuntu and /tmp folder does not exists. I can manually run dartium, I have tried the same thing on windows box with no luck :( – ashokd Jun 05 '15 at 21:12
  • Where is your `tmp` folder? `/tmp` is usually available on Linux. Can you run manually with `dartium --user-data-dir=/tmp/xxx`? – Günter Zöchbauer Jun 05 '15 at 21:17
  • Even in temp folder I cannot see/run dartium. Same behavior on my windows machine – ashokd Jun 06 '15 at 00:03
  • Where is your temp folder? It doesn't matter if you're in the temp folder when launching Dartium when Dartium is looking for it somewhere else. – Günter Zöchbauer Jun 06 '15 at 10:38
  • @GünterZöchbauer tmp folder is at the root level. Below is full error message.
    Failed to start Dartium: No such file or directory Command: dartium --user-data-dir=/tmp/dart_test_Wh4VBK http://localhost:54530/A2wNo7Wt8_73H_-ItA22m5u6B3wMjTnp/packages/test/src/runner/browser/static/index.html?managerUrl=ws%3A%2F%2Flocalhost%3A54530%2FA2wNo7Wt8_73H_-ItA22m5u6B3wMjTnp%2F0 --disable-extensions --disable-popup-blocking --bwsi --no-first-run --no-default-browser-check --disable-default-apps --disable-translate.
    – ashokd Jun 08 '15 at 14:22
  • In your 2nd comment you wrote "`/tmp` folder does not exist", does it, or does it not? What error do you get when you run `dartium --user-data-dir=/tmp/xxx` manually? – Günter Zöchbauer Jun 08 '15 at 14:23
  • It was hidden and now I figured it out. sorry for confusion. – ashokd Jun 08 '15 at 14:25
  • Have you verified, that you have sufficient permissions to create a sub-folder within `/tmp`? – Günter Zöchbauer Jun 08 '15 at 14:27
  • Yes, I have sufficient permissions. – ashokd Jun 08 '15 at 14:27
  • 1
    @GünterZöchbauer Thank you!, I figured out the issue, see my answer. – ashokd Jun 08 '15 at 19:30
  • On windows, as a general rule for developers, best to create a temp folder outside of your user directory. e.g. md c:\temp, set TEMP=c:\temp – John Dhom Jun 09 '15 at 14:45

1 Answers1

8

I was missing symlink. After adding symlink tests are working.

ln -s /path/to/chrome /path/to/dartium

where /path/to/chrome is your chrome executable from dartium directory

ashokd
  • 393
  • 2
  • 11