/Catalyst

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

What is Catatlyst?

Catalyst is an application which allows developers to generate unit test cases for components utilizing the Jest framework and Javascript's Enzyme testing utility. With its interactive GUI, the creation of test code can be completed with just a few clicks.

Installation

First download the app here

At this time Catalyst is compatible for use with React 16.

To get started, Jest, Enzyme, and Enzyme Adapter for React 16 must be installed. To do this, enter the following line in the command line interface of your project directory:

npm install --save-dev jest enzyme enzyme-adapter-react-16

How to use

  1. Select the root folder for the project you would like to create tests for.

Opitonally, You can select which file you want to generate tests and preview the component of choice on the right.

  1. Using our interactive GUI, choose from Enzyme's matcher API and fill in their respective selectors. Once completed, click the Generate Tests button to preview your test code.

  1. If satisfied, click the Export Test Code button, name your file, and select the save button to create the test in your project.

Contributing

This project is still very early in development, so please inform our team know of any issues found in the application. Feel free to reach out to the development team if you'd like to make a PR to add new features to this project.

Authors

Jon Ascencio jascenc1  ·  Danny Chung chungdanny64  ·  Gavin Crews gcrews1894  ·  Jarryl Oquias jaroqui17