title: Conditionally Execute test() in Flutter
body: <p>When using the Flutter <code>test</code> and <code>drive</code> options, can we control the execution of certain test based on the results from the previous ones ? We have a <code>skip</code> option in the test. However, I was unable to find anyway to check whether a previous test passed in the program. For example :</p>
  
  <pre class="lang-dart prettyprint-override"><code>    void main() {
        group('Group A', () {
          FlutterDriver driver;
  
          // Connect to the Flutter driver before running any tests.
          setUpAll(() async {
            driver = await FlutterDriver.connect();
          });
  
          // Close the connection to the driver after the tests have completed.
          tearDownAll(() async {
            if (driver != null) {
              driver.close();
            }
          });
  
          test('Test A', () async {
          });
  
          test('Test B', () async {
          });
  
          test('Test C', () async {
          });
        });
          }
  </code></pre>
  
  <p>My question is , how can I skip the execution of B and C if A failed and how can I skip the execution of group B id group A tests failed ?</p>