Skip to content
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

feat: run flutter tests with linked aot binaries #84

Open
eseidel opened this issue Jun 17, 2024 · 0 comments
Open

feat: run flutter tests with linked aot binaries #84

eseidel opened this issue Jun 17, 2024 · 0 comments

Comments

@eseidel
Copy link

eseidel commented Jun 17, 2024

flutter_tester is the underlying binary used by flutter test. Ideally we would run all of the flutter test tests in packages/flutter, just with Shorebird's Dart. The problem is that flutter test currently uses JIT. It runs the .dart files through the frontend server and then sends the .dill files to flutter_tester which compiles and executes them in separate flutter engine instances.

We would probably move to either a one-off flutter_tester to start. Regardless, we would need to change flutter_tester to have an aot-mode, as well as flutter test (or our own simpler harness) to know how to do the aot compile with gen_snapshot.

This could get us a bunch of testing at the flutter level that we don't have today:

  • link percentage tests
  • before/after linking tests (including performance)

It's at least a couple day project.

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

No branches or pull requests

1 participant