-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TestBed aotSummaries #2162
Comments
In case you think you might look into this, here's a repo that seems to include the ability to use aotSummaries for tests: https://github.com/Quramy/test-with-aot-summary I took a look and I'm not really sure what he's doing with his shell script. But I thought maybe this could provide some useful info if you think this is worth adopting. I know from experience that running tests where the templates are not recompiled for every spec method will reduce the time it takes to run tests by 50-75%. For me, the difference for 600+ tests was over 5 minutes faster per run. |
Hey @brian428 this issue is not priority for my use case of Angular Seed. If you have time would love to review and merge PR which introduces the feature. |
I may try to take a stab at it, but much of the low-level AoT stuff is baffling to me. It doesn't help that the docs don't really say anything about how this works. But if I can figure it out, I'll certainly send a PR. |
[X] feature request
Apparently, Angular added a feature called
aotSummaries
toTestBed.initTestEnvironment()
at some point (https://angular.io/api/core/testing/TestBed#initTestEnvironment). But the docs are pretty sparse. Could the seed be updated to support these? Apparently, it makes unit tests run much faster because the HTML templates aren't constantly recompiled for every spec method.The text was updated successfully, but these errors were encountered: