Skip to content

[Tool] plugins_test.dart use of expect(registrantImpl, isNot(...)) always passes #171919

@matanlurey

Description

@matanlurey
final File registrantImpl = linuxProject.managedDirectory.childFile(
  'generated_plugin_registrant.cc',
);

expect(registrantImpl, exists);
expect(registrantImpl, isNot(contains('SomePlugin')));
expect(registrantImpl, isNot(contains('some_plugin')));

This does not do what you expect ... it always silently passes (and does not read the file).

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: tech-debtTechnical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions