SimonTest is an Angular test generator.
It takes care of the most tedious part of testing components and services: mocking dependencies. This extension analyzes your code and creates the necessary stubs, configures the TestBed, and it even generates basic tests.
If you don't like writing boilerplate code then this extension is for you.
Want to learn the best practices for testing Angular components?
Check out the fully tested Tour of Heroes sample app with articles explaining how to test each component.
Automatically generate Angular tests
Right-click an Angular component to generate the test file:
Stubs all your dependencies
Never have to worry about hitting the real services:
Configure the TestBed based on your components
Let SimonTest deal with imports, providers, declarations, etc.
Creates tests based on your code
It keeps track of your method calls and generates tests based on it.
Stubs are ready for spying on them
SimonTest analyzes your code and figures out which service methods are used:
Create new component from HTML
Stop writing needless boilerplate every time you create a new component.
Questions & Issues
Report bugs/problems by creating an issue
Please note that this is a paid extension. It comes with a 30 day trial. SimonTest will save you time and effort so ask your company about getting a license. Licenses can be acquired at: https://gumroad.com/l/SimonTest. You can enter your license key by pressing Ctrl + Shift + P, then 'SimonTest: Update License' on VSCode.