Hacker News new | past | comments | ask | show | jobs | submit login
A Simple Way to Create React Tests – Zero Coding Required
2 points by apark0720 on June 17, 2019 | hide | past | favorite | 1 comment
http://www.spearmintjs.com

“The more your tests resemble the way your software is used, the more confidence they can give you”

Writing tests is like eating your veggies: it is something everyone knows that they should do, but not everyone does. Spearmint provides a simple way to write tests that give you confidence your React application will work in the way your users interact with it.

Using spearmint, developers can easily generate React tests by using our user-friendly GUI. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by the react-testing-library. We chose react-testing-library over Enzyme because it guides developers to focus on testing user behavior rather than testing implementation details. By leveraging react-testing-library, our application provides our users with more stable tests that do not break when refactoring or gives false positives due to shallow-rendering.

Thanks for Reading! Visit us at http://www.spearmintjs.com to test out our beta version.

Our team pledges 5 hours of development for every 100 Github stars we get on spearmint! (www.github.com/spearmintjs/spearmint). Star us to speed up development for an easy way to test your React applications. We would greatly appreciate any feedback — bug reports, feature requests, positive support, constructive criticism etc! Please email spearmintjs@gmail.com if you are interested in contributing.







Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: