Skip to content

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

Merged

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Feb 3, 2023

Towards: dart-lang/sdk#49728

  • Pass --enable-experiments flag to the frontend server and ddc.
  • Add _experimentSound test fixture.
  • Add a simple records test.

@annagrin annagrin requested a review from elliette February 3, 2023 20:01
@@ -264,6 +265,8 @@ class TestContext {
'--define',
'build_web_compilers|ddc=generate-full-dill=true',
],
for (var experiment in experiments)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: for (final experiment...

Copy link
Contributor Author

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>[],
Copy link
Contributor

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

Copy link
Contributor Author

@annagrin annagrin Feb 4, 2023

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense!

Copy link
Contributor Author

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.

@annagrin annagrin merged commit a6ad8de into dart-lang:master Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants