5

I have a suite of integration tests for a Flutter app. I would like to run them using the VS Code Testing tab, so that I can easily see info about what tests passed/failed, etc.

VS Code Testing View

This worked fine before we implemented flavors. Now that flavors are defined in launch.json, running the tests require a --flavor argument, but I can't seem to set that in the UI.

If I try to run them on iOS using the Testing tab in VS Code, I get this error:

The Xcode project defines schemes: dev, prod, qa Exception: You must specify a --flavor option to select one of the available schemes.

I can run flutter test integration_test --flavor dev, but the terminal fills up with logs and it's harder to find out which tests failed and why.

Luke Morse
  • 395
  • 2
  • 12
  • What version of Flutter do you use? There was an issue with flavors but that has actually been fixed some time ago. – RobDil Dec 20 '22 at 04:42
  • @RobDil I'm currently using Flutter version 3.7.6 and am still experiencing this issue. – Luke Morse Mar 09 '23 at 16:22

0 Answers0