{"repo":"gparlakov/scuri","free":true,"listed":false,"github":"https://github.com/gparlakov/scuri","clone":"git clone https://github.com/gparlakov/scuri.git","description":"Automate Angular unit test and boilerplate with this schematic.","language":"TypeScript","stars":71,"topics":["angular","unittest","unittests-generation","typescript","schematics","spec-schematic","boilerplate","enterprise"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"SCuri\\ Automates unit test boilerplate for Angular components/services/directives/etc. It will generate spec for you and help you update it when dependencies are added or removed! Powered by Schematics and TypeScript compiler Links VS Code extension available! 🐱‍👤Need a custom template? 🤙Have some feedback or need a feature? SCuri discussion on github 🤵Need commercial-quality coverage for SCuri? 💵Support us Why? After a component has been created it is boring and tedious to do the tests - and we often don't . SCuri\\ tries to jump-start that by walking the component's constructor, parsing the dependencies and creating mocks for each of them, and then including them in the spec. Features Create a test case from scratch The video shows how to use schematics scuri:spec --name src\\app\\my-com\\my-com.component.ts to create a spec from scratch (if already created see update or use --force to overwrite). For Angular CLI = 6 ng g scuri:spec --name src\\app\\my-com\\my-com.component.ts could be used instead. --name is now optional ng g scuri:spec my-com.component.ts or npx schematics scuri:spec my-com.component.ts See details down here. Update existing test Shows how we begin with an outdated test: - missing it test case for one of the public methods ( getData ) - missing dependency HttpClient to instantiate the component And after schematics scuri:spec --name src\\app\\my-com\\my-com.component.ts --update command we get the updated test - dependency and a scaffold test case added. For A","default_branch":null,"files":null,"tree":[],"storefront":"/r/gparlakov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gparlakov/scuri/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}