Spearmint helps developers easily create functional React/Redux tests without writing any code. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by @testing-library.
Spearmint is currently under development! We just finished our MVP and are looking for beta testers. Please open a new issue with details to report a bug. Adding support to mock API requests, context, and hooks are on the roadmap.
Download spearmint @ spearmintjs.com. Available for Mac OS and Windows. To run tests generated by spearmint install jest, @testing-library/jest-dom, @testing-library/react, and test-data-bot in your dev dependencies.
npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot
- On the initial screen, enter the URL of your project and load your React/Redux application to start creating tests.
- Utilize our auto-complete, drop-down options, and tooltips features to easily create arrangement, action, and assertion test statements for React, in addition to reducer, action creator, asynchronous action creator, and middleware test statements for Redux.
-
Refer to the browser view of your app that is displayed on the right to quickly identify values for your selectors and use the file directory to open up a code editor view to easily refer to your codebase for props information.
-
Spearmint will then convert user input to dynamically generate a test file that will be saved inside a tests folder, which you can use to run ‘npm test’ on.
Alex @apark0720 · Johnny @johnny-lim · Julie @julicious100 · Natlyn @natlynp · Karen @karenpinilla · Chloe @HeyItsChloe · Cornelius @corneeltron · Dave @davefranz · Linda @lcwish · Rachel @rachethecreator