Search code examples
dartdart-unittest

How to debug browser tests with the new test package


browser tests need to be run from command line like pub run test -pdartium. Is there a way to debug such tests.


Solution

  • pub run test -pdartium --pause-after-load
    

    starts the test only after I click a "play" button on the test page. This gives me time to open up Dev Tools in Dartium and set breakpoints. I can also open up the Observatory and do stuff there.