title: Dart tests are executed after normal code
body: <p>I think this is poorly documented (if not a bug).</p>
  <p>Dart first completes the code in <code>main()</code>, then the tests in functions <code>test()</code>.</p>
  <p>This code explains:</p>
  <pre><code>import 'package:test/test.dart';
  void main() {
    test('',() {print('1');});
    print('2');
    test('',() {print('3');});
  }
  </code></pre>
  <p>Output: 213</p>
  <p>Is there a way to return an error or suppress the execution of spurious code not pertaining to tests? Or maybe a way to have a lint warning from the analyzer?</p>