[testdata] This package does not have ... in the dependencies
or dev_dependencies
section of pubspec.yaml
#4363
Labels
type-enhancement
A request for a change that isn't a bug
Can't publish if
test/testdata/foo.dart
importspackage:example/
.This fails due to:
validator/strict_dependencies.dart
We need a way to include arbitrary test data, perhaps we could:
analysis_options.yaml)
.testdata/
folders are never analyzed.Needs to be landed package layout conventions
Needs coordination and buy-in from wider Dart team.
Needs support from
analyzer
, we'd need**/testdata/**
folders to be excluded by default inanalysis_options.yaml
(possibly with an option to include such a folder again).It aligns with golang:
See: https://pkg.go.dev/cmd/go#hdr-Test_packages
Example attempt to publish
dartdoc_test
.Code that caused this is available here:
https://github.com/google/dart-neats/tree/dartdoc_test-v0.1.0/dartdoc_test
The text was updated successfully, but these errors were encountered: