DEV Community

Discussion on: How to Speed Up Angular Tests

Collapse
joerter profile image
John Oerter • Edited on

Do you know if using some of the testing libraries such as angular-testing-library or spectator help with this issue? I haven't used either of them, but am beginning to experiment. Angular Testing Library at least looks like it may expose components in a different way that gets around this issue.

I too have stopped using the TestBed for most tests and simply test components by treating them as simple classes and asserting against their public properties, but am beginning to look at these other libraries as an easier and quicker way to test against the DOM

Collapse
layzee profile image
Lars Gyrup Brink Nielsen • Edited on

Both of them wrap TestBed so they will have exactly the same problems. We did discuss adding ng-bullet to Spectator, but decided to wait for Ivy.

Thread Thread
zaky7 profile image
Zakir

I have seen even after Ivy, ng-bullet is still helps in speed up the tests. Is the discussion still open?

Thread Thread
layzee profile image
Lars Gyrup Brink Nielsen

I'm not sure. You're welcome to file an issue to Spectator.