Failed to load dartium when running test

Issue

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 

Solution

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

Answered By – ashokd

Answer Checked By – Dawn Plyler (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *