Dart pub test ... can you exclude files / directories?

dart / pub v1.10

I have a test / e2e folder that has webdriver.dart tests in it. 'pub run test' tries to run dart files in e2e.

pubspec.yaml
dev_dependencies:
    test: '>=0.12.1 <0.13.0'

      

I tested webdriver.dart as

dart test/e2e/some_test.dart

      

Hopefully pub / test implemented the transformer ... so I just excluded it in pubspec.yaml. There is no joy. Can I build a transformer for testing?

Ideas? (besides moving the directory from the test :-))

The update looks like my options:

  • pub run test test / unit (specify directory)
  • move the e2e folder from the "test"
+3


source to share


1 answer


You can filter tests with --name=xxx

(where xxx can be a regex) or parameters --plain-name=xxx

(substring only) to filter tests. There is an open issue with adding tags, but I don't know if this is actually planned.



I don't know what you expect from a transformer. If you use include / excludes to configure a transformer, it only specifies which files are being processed by the transformer, not which files are being processed.

+1


source







All Articles