• James Lin's avatar
    Give `_runFlutterTest` the ability to validate command output · c02b805c
    James Lin authored
    In another change (#37646), I want to test that a test fails and
    prints expected output.  I didn't see an existing way to do that, so
    I modified `_runFlutterTest` and `runCommand` to allow capturing the
    output.  Currently capturing and printing output are mutually
    exclusive since we don't need both.
    
    Some awkward bits:
    * There already exists a `runAndGetStdout` function that is very
      similar to `runCommand`, and this change makes the conceptual
      distinction more confusing.
    
    * `runFlutterTest` has multiple code paths for different
      configurations.  I don't understand what the different paths are
      for, and I added output checking only along one of them.
    c02b805c
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.codecov.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...