ReportersNewv0.3.0
Flutter test reporting, with the qualflare_flutter package
Upload Flutter unit, widget and integration test results to Qualflare with qf, and add steps, screenshots and labels with the qualflare_flutter package.
Qualflare now supports Flutter. Upload your unit, widget and integration test results with the qf CLI and they show up as Flutter launches. The new qualflare_flutter package adds steps, screenshots and labels from inside your tests.
What's new
- Flutter results in
qf.qf0.2.0 reads the JSON output offlutter test, detects it automatically, keeps each retry attempt, and shows real messages for widget-test failures. - The
qualflare_flutterpackage. Mark up your tests with labels, links, tags, priority, steps and attachments. Take a screenshot withqualflare.screenshot(tester, name), or setnative: truefor a platform capture on a device. UsequalflareTestWidgetsto attach afailure.pngautomatically when a test throws. - A Flutter test type. Flutter launches show as their own test type in Qualflare.
How to use it
flutter test --file-reporter json:flutter-results.json
qf myapp collect flutter-results.json
For integration tests on a device, add --platform android or --platform ios to the qf command. To use the package, run flutter pub add --dev qualflare_flutter.
Availability
Plain Flutter results need qf 0.2.0 or newer; the qualflare_flutter package needs qf 0.3.0 and Flutter 3.24 or newer. Attachments are capped at 5 MiB each and 20 MiB per test.