DEV Community

Discussion on: Take screenshot during Flutter integration tests

Collapse
 
mzimmerm profile image
Milan Zimmermann

Having created a sample project following instructions here.

  flutter drive --driver=test_driver/integration_test.dart --target=integration_test/screenshot_test.dart
Enter fullscreen mode Exit fullscreen mode

The integration test works, and produces a screenshot. However, adding a directory named example to the project, makes everything fail. This is only, and very specifically the directory named example.

I reported this in detail in github.com/flutter/flutter/issues/... .

But I am wondering if anyone else is having an issue with this.

This may seem innocent, but it prevents library packages to include examples, which by dart convention should be in directory named example.