Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load dartium when running test

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 
like image 285
ashokd Avatar asked Mar 16 '23 20:03

ashokd


1 Answers

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

like image 139
ashokd Avatar answered Mar 19 '23 06:03

ashokd