|
| 1 | + |
| 2 | + |
| 3 | +Spearmint helps developers easily create functional React/Redux/Endpoint/Paint Timing tests without writing any code. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by @testing-library. |
| 4 | + |
| 5 | +# Installation |
| 6 | +Please download spearmint from our [website](https://www.spearmintjs.com/). Available for Mac OS and Windows. |
| 7 | + |
| 8 | + |
| 9 | +# How to use in development mode |
| 10 | + |
| 11 | +### For Mac developers |
| 12 | + |
| 13 | +**Prerequisite**: Install Xcode |
| 14 | + |
| 15 | +First install |
| 16 | +1. Fork and clone this repository. |
| 17 | +2. ```npm install``` |
| 18 | +3. ```npm run watch``` |
| 19 | +3. ```npm run start-dev``` |
| 20 | + |
| 21 | +*** |
| 22 | + |
| 23 | +### For Windows developers |
| 24 | + |
| 25 | +**Prerequisite**: Install Node.js globally |
| 26 | + |
| 27 | +1. Fork and clone this repository. |
| 28 | +2. ```npm install``` |
| 29 | +3. ```npm run watch``` |
| 30 | +3. ```npm run start-dev``` |
| 31 | + |
| 32 | +Note: Windows users may also have to run Spearmint in admin mode |
| 33 | + |
| 34 | + |
| 35 | +<br> |
| 36 | + |
| 37 | + |
| 38 | +# How it works |
| 39 | + |
| 40 | + |
| 41 | +1. On the initial screen, a user is prompt to login, sign up (via OAuth or standard sign-up/login), or login as a guest. Once logged in choose your file and load your application to start creating tests. |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | +2. 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. Spearmint can save test templates for future use for logged in user (not guests). |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +3. Spearmint will then convert user input to dynamically generate a test file, which you can click export icon on the left nav bar to automatically save the test file in the **\_\_tests\_\_** folder. |
| 50 | + |
| 51 | + |
| 52 | +4. Lastly click **Run Test** button and follow the guide and click what type of test you would like to perform. |
| 53 | + |
| 54 | + |
| 55 | +5. An accessibility lens has been added in the app to give developers with different mismatches various options to interact with the app. |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +6. The latest version of Spearmint has a specific focus on security. The [Snyk](https://snyk.io/) library has been utilized to ensure your application is up to snuff for various security standards and protect your application from malicious attacks. |
| 60 | +Users can now test their application for vulnerabilities including: SQL Injection, Cross-site Scripting (XSS), Hardcoded Secrets, and much more! |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +# New features with version 0.8.0 |
| 65 | + |
| 66 | +-Security testing via Snyk |
| 67 | + |
| 68 | +-Guest Login |
| 69 | + |
| 70 | +-Cross-platform functionality (Mac OS w/ M1 chip, Mac OS w/ Intel chip, Windows) |
| 71 | + |
| 72 | +-60% reduced package size |
| 73 | + |
| 74 | +-Accelerated startup time |
| 75 | + |
| 76 | +-Ample bug fixes |
| 77 | + |
| 78 | +<br> |
| 79 | + |
| 80 | +# Demos |
| 81 | + |
| 82 | +### Guest login |
| 83 | + |
| 84 | + |
| 85 | +### Signup + login |
| 86 | + |
| 87 | + |
| 88 | +### Snyk auth + dependency test |
| 89 | + |
| 90 | + |
| 91 | +### Snyk fix dependencies |
| 92 | + |
| 93 | + |
| 94 | +### Generate endpoint test |
| 95 | + |
| 96 | + |
| 97 | +### Run a specific test |
| 98 | + |
| 99 | + |
| 100 | +<br> |
| 101 | + |
| 102 | + |
| 103 | +# Snyk Setup |
| 104 | + |
| 105 | + |
| 106 | +### Authenticate Snyk |
| 107 | + |
| 108 | + |
| 109 | +### Enable Snyk code |
| 110 | + |
| 111 | + |
| 112 | +# The Spearmint Team |
| 113 | +<hr> |
| 114 | + |
| 115 | +> Alan [@alanrichardson7](https://github.com/alanrichardson7) <br /> |
| 116 | +> Alex [@apark0720](https://github.com/apark0720) <br /> |
| 117 | +> Alfred [@astaiglesia](https://github.com/astaiglesia) <br /> |
| 118 | +> Annie [@annieshinn](https://github.com/annieshinn) <br /> |
| 119 | +> Ben [@bkwak](https://github.com/bkwak) <br /> |
| 120 | +> Charlie [@charlie-maloney](https://github.com/charlie-maloney) <br /> |
| 121 | +> Chloe [@HeyItsChloe](https://github.com/HeyItsChloe) <br /> |
| 122 | +> Cornelius [@corneeltron](https://github.com/corneeltron) <br /> |
| 123 | +> Dave [@davefranz](https://github.com/davefranz) <br /> |
| 124 | +> Dieu [@dieunity](https://github.com/dieunity) <br /> |
| 125 | +> Eric [@ericgpark](https://github.com/ericgpark) <br /> |
| 126 | +> Evan [@Berghoer](https://github.com/Berghoer) <br /> |
| 127 | +> Gabriel [@bielchristo](https://github.com/bielchristo) <br /> |
| 128 | +> Joe [@josephnagy](https://github.com/Josephnagy) <br /> |
| 129 | +> Johnny [@johnny-lim](https://github.com/johnny-lim) <br /> |
| 130 | +> Julie [@julicious100](https://github.com/julicious100) <br /> |
| 131 | +> Justin [@JIB3377](https://github.com/JIB3377) <br /> |
| 132 | +> Karen [@karenpinilla](https://github.com/karenpinilla) <br /> |
| 133 | +> Linda [@lcwish](https://github.com/lcwish) <br /> |
| 134 | +> Luis [@Luis-KM-Lo](https://github.com/Luis-KM-Lo) <br /> |
| 135 | +> Max B[@mbromet](https://github.com/mbromet) <br /> |
| 136 | +> Max W [@MaxWeisen](https://github.com/MaxWeisen) <br /> |
| 137 | +> Mike [@mbcoker](https://github.com/mbcoker) <br /> |
| 138 | +> Mo [@mhmaidi789](https://github.com/mhmaidi789) <br /> |
| 139 | +> Natlyn [@natlynp](https://github.com/natlynp) <br /> |
| 140 | +> Nick [@nicolaspita](https://github.com/nicolaspita) <br /> |
| 141 | +> Owen [@oweneldridge](https://github.com/oweneldridge) <br /> |
| 142 | +> Rachel [@rachethecreator](https://github.com/rachethecreator) <br /> |
| 143 | +> Sean Y [@seanyyoo](https://github.com/seanyyoo)<br /> |
| 144 | +> Sean H [@sean-haverstock](https://github.com/Sean-Haverstock) <br /> |
| 145 | +> Sharon [@sharon-zhu](https://github.com/sharon-zhu) <br /> |
| 146 | +> Sieun [@sieunjang](https://github.com/sieunjang) <br /> |
| 147 | +> Terence [@TERR-inss](https://github.com/TERR-inss) <br /> |
| 148 | +> Tolan [@taoantaoan](https://github.com/taoantaoan) <br /> |
| 149 | +> Tristen [@twastell](https://github.com/twastell) <br /> |
| 150 | +> Tyler [@tytyjameson](https://github.com/tytyjameson) |
| 151 | +<hr> |
| 152 | +
|
| 153 | +*** |
| 154 | + |
| 155 | +# If You Want To Contribute: |
| 156 | +The following is a list of features + improvements for future open-source developers that the Spearmint team has either started or would like to see implemented. Or, if you have additional new ideas, feel free to implement those as well! |
| 157 | +- Vue test generation |
| 158 | +- Github OAuth login (was available in previous versions, but the components used became deprecated) |
| 159 | +- Additional security testing functionality |
0 commit comments