-
Notifications
You must be signed in to change notification settings - Fork 81
Add experimental test fixtures and tests #1937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add experimental test fixtures and tests #1937
Conversation
dwds/test/fixtures/context.dart
Outdated
@@ -264,6 +265,8 @@ class TestContext { | |||
'--define', | |||
'build_web_compilers|ddc=generate-full-dill=true', | |||
], | |||
for (var experiment in experiments) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: for (final experiment...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -199,6 +199,7 @@ class TestContext { | |||
bool launchChrome = true, | |||
bool isFlutterApp = false, | |||
bool isInternalBuild = false, | |||
List<String> experiments = const <String>[], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this parameter makes more sense as part of the TestContext
constructors since the experiments are tied to the package being used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure they are always tied to the package - I can imagine an experiment that does not need changes to the code, just the compilation of it. I'll ask Nick to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed with Nick, indeed we can have experiments that work on the same code.
Towards: dart-lang/sdk#49728
--enable-experiments
flag to the frontend server and ddc._experimentSound
test fixture.