Skip to content
A simpler way to write React tests - zero coding required
JavaScript CSS HTML
Branch: master
Clone or download
Latest commit ba5da8c Feb 15, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode application is ready for build mode Jun 13, 2019
public merged Jun 17, 2019
src
.gitignore added env file Feb 6, 2020
.prettierrc.json finish import statement test cases and re-apply prettier Jun 2, 2019
.travis.yml fixed travis.yml Feb 15, 2020
LICENSE Create LICENSE Jun 18, 2019
README.md edited readme Feb 13, 2020
package.json starting tests Feb 5, 2020
todoDemo.mov removed the linux option Jun 29, 2019

README.md

Spearmint helps developers easily create functional React/Redux/Endpoint tests without writing any code. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by @testing-library.

How to use

Download spearmint @ spearmintjs.com. Available for Mac OS and Windows.

To run React tests generated by spearmint, install the following in your dev dependencies.

npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot

To run Redux tests generated by spearmint, install the following in your dev dependencies, in addition to your React test installations above.

npm i -D redux-mock-store redux-thunk fetch-mock

To run Hooks / Context tests generated by spearmint, install the following in your dev dependencies, in addition to your React test installations above.

npm i -D @testing-library/react-hooks

To run Endpoint tests generated by spearmint, install the following in your dev dependencies.

npm i -D jest supertest

How it works

  1. On the initial screen, enter the URL of your project and load your application to start creating tests.

  1. Utilize our auto-complete, drop-down options, and tooltips features to easily create arrangement, action, and assertion test statements for React; reducer, action creator, asynchronous action creator, and middleware test statements for Redux; and hooks, context, and endpoint test statements.

  1. 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.

  2. 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.

Team

Alex @apark0720  ·  Chloe @HeyItsChloe  ·  Cornelius @corneeltron  ·  Dave @davefranz  ·  Johnny @johnny-lim
Julie @julicious100  ·  Karen @karenpinilla  ·  Linda @lcwish  ·  Natlyn @natlynp  ·  Rachel @rachethecreator

You can’t perform that action at this time.