olexale / bdd_widget_test

A BDD-style widget testing library
MIT License
101 stars 30 forks source link

Add a suffix for the test file to be able to ignore them in the linter. #47

Closed lsaudon closed 11 months ago

lsaudon commented 11 months ago

It's not possible to make *.g.dart files, but it would be possible to make *_feature_test.dart so you can ignore the files in the linter.

olexale commented 11 months ago

Hey, thanks for your proposition. I'd expect you don't mess your feature tests with regular unit tests? If so, assuming you have some folder (let's say you call it feature), why don't you filter feature tests in analysis_options.yaml like that:

analyzer:
  exclude:
    - '**/feature**/*_test.dart'
lsaudon commented 11 months ago

For the moment, I'm testing the package in an example app.

olexale commented 11 months ago

Cool! Am I right that the proposed workaround solves the problem and so we may close the issue?