You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a test in isolation that happens to have a multiline description as well as using the string expression with types recommendation it throws an error (No tests match regular expression).
Note: problem does not occur when running multiple tests or running tests through command.
Example to reproduce:
class MyClass {
void myMethod() {}
}
void main() {
test(
'$MyClass verrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrry long test description '
'myMethod returns normally', () {
final myClass = MyClass();
expect(myClass.myMethod, returnsNormally);
});
}
Error:
Suggestion:
Add a note to warn people about this potential problem.
The text was updated successfully, but these errors were encountered:
The issue I opened has just been closed. Seems like dart-lang/test isn't invested in fixing it. Maybe we should re-evaluate this practice recommendation? @marwfair
When running a test in isolation that happens to have a multiline description as well as using the string expression with types recommendation it throws an error (
No tests match regular expression
).Note: problem does not occur when running multiple tests or running tests through command.
Example to reproduce:
Error:
Suggestion:
Add a note to warn people about this potential problem.
The text was updated successfully, but these errors were encountered: