Scuri

screenshot of Scuri
angular

Automate Angular unit test and boilerplate with this schematic.

Overview

SCuri is a tool that helps automate unit test boilerplate for Angular components, services, directives, and more. It generates spec files and assists in updating them when dependencies are added or removed. Powered by Schematics and the TypeScript compiler, SCuri makes it easier and more efficient to create and maintain tests for Angular applications.

Features

  • Create a test case from scratch: Generates a spec file for a selected component/service/directive, including necessary dependencies and mocks.
  • Update existing test: Updates an outdated test case by adding missing dependencies and scaffold test cases.
  • AutoSpymissing: Generates an autoSpy function that mocks all methods of a given type using jasmine.spy() or jest.fn().

Summary

SCuri is a powerful automation tool for Angular unit testing. It simplifies the process of creating and updating spec files by generating the necessary boilerplate code and automatically adding or removing dependencies. With features like creating test cases from scratch and updating existing tests, SCuri helps improve the efficiency and reliability of unit testing in Angular applications.

angular
Angular

Angular is a TypeScript-based open-source framework by Google for building dynamic single-page applications and cross-platform mobile apps with MVC architecture and a rich set of features.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.