All Projects → oslabs-beta → Examin

oslabs-beta / Examin

Licence: MIT license
Examin is a developer tool that generates React unit tests for your application. Ensure your application renders as expected before adding new features. Examin writes the baseline unit tests and allows developers to customize their tests for their application.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Examin

Enzyme Matchers
Jasmine/Jest assertions for enzyme
Stars: ✭ 881 (+1074.67%)
Mutual labels:  enzyme, tdd
React Vt
Data-driven visual testing library for React developers
Stars: ✭ 340 (+353.33%)
Mutual labels:  enzyme, tdd
Should Enzyme
Useful functions for testing React Components with Enzyme.
Stars: ✭ 41 (-45.33%)
Mutual labels:  enzyme, tdd
React Tdd Guide
A series of examples on how to TDD React
Stars: ✭ 585 (+680%)
Mutual labels:  enzyme, tdd
my-react-todolist
A guide to TDD a React/Redux TodoList App
Stars: ✭ 22 (-70.67%)
Mutual labels:  enzyme, tdd
Redux Form Test
Shows how to do unit tests and integration tests with Redux-Form
Stars: ✭ 221 (+194.67%)
Mutual labels:  enzyme
chai
BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
Stars: ✭ 7,842 (+10356%)
Mutual labels:  tdd
Protocol
Enzyme Protocol Implementation
Stars: ✭ 211 (+181.33%)
Mutual labels:  enzyme
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (+120%)
Mutual labels:  enzyme
memo
다양한 MD 메모
Stars: ✭ 87 (+16%)
Mutual labels:  tdd
react-module-boilerplate
Sample React presentational components package.
Stars: ✭ 16 (-78.67%)
Mutual labels:  enzyme
birthtalk
Meet who have birth common with you
Stars: ✭ 36 (-52%)
Mutual labels:  tdd
Testing React Redux With Jest And Enzyme
React Redux Testing Template using Jest and Enzyme
Stars: ✭ 224 (+198.67%)
Mutual labels:  enzyme
nextjs-graphql-auth
Authentication system using NextJS, GraphQL, Apollo Client, Apollo Server, MongoDB, Nginx, Docker, Docker-Compose and Kubernetes
Stars: ✭ 27 (-64%)
Mutual labels:  enzyme
Awesome Learning
Awesome Learning - Learn JavaScript and Front-End Fundamentals at your own pace
Stars: ✭ 216 (+188%)
Mutual labels:  enzyme
finance-project-ddd
Projeto financeiro usando domain driven design, tdd, arquitetura hexagonal e solid
Stars: ✭ 67 (-10.67%)
Mutual labels:  tdd
2019 12
🎟 급증하는 트래픽에도 안정적인 예약 서비스, Atomic Pattern을 적용한 재사용 가능한 컴포넌트, 실용적인 Testing을 주제로 하는 이벤트 서비스
Stars: ✭ 169 (+125.33%)
Mutual labels:  enzyme
TDD
Everything about testing, especially TDD, Test-Driven Development: Really, It’s a Design Technique
Stars: ✭ 28 (-62.67%)
Mutual labels:  tdd
svut
SVUT is a simple framework to create Verilog/SystemVerilog unit tests. Just focus on your tests!
Stars: ✭ 48 (-36%)
Mutual labels:  tdd
esri-redux
Simple boilerplate demonstrating how to setup a project using React, Redux, Flow, and the Esri JavaScript API.
Stars: ✭ 34 (-54.67%)
Mutual labels:  enzyme

Examin Cover


Examin

Automatic React Unit Test Generator
examin.dev | Install Examin

GitHub license Version GitHub Release PRs Welcome GitHub contributors

Features

Examin is a developer tool that generates React unit tests for your application. Ensure your application renders as expected before adding new features. Examin writes the baseline unit tests and allows developers to customize their tests for their application.

  • Install the Examin extension
  • Install npm dependencies for Jest/Enzyme
  • Navigate to the Examin panel in Chrome developer tools
  • Generate tests

Preview of Examin

Installation 🔌

To get started, manually install Examin in Developer mode.

  1. Clone the repo
    git clone https://github.com/oslabs-beta/Examin.git
  2. Install NPM packages
    npm install
  3. Create a build directory
    npm run build
  4. Load the unpacked extension from src/extension to Chrome

NOTE: The React Developer Tools extension is also required for Examin to run, if you do not already have it installed on your browser.

How to Use ❓️

  1. Install Jest/Enzyme for your project

    • npm install jest enzyme enzyme-adapter-react-16 @babel/core @babel/preset-env
    • Add presets to your .babelrc file
      { "presets": ["@babel/preset-env", "@babel/preset-react"] }
  2. Run the Examin build using npm run dev

  3. Navigate to the Examin panel in Chrome DevTools

    • Must be in developer mode
    • Revise import statements as needed
  4. Add Generated tests into your application

    • Add __tests__ directory in root directory
    • Add test js file to __tests__ directory
    • Run tests using jest or jest <filename>


Editing Import Statements Demo Gif

  • Editing import statements


State Change and Component Selection Demo Gif

  • Updating tests with state changes
  • Selecting components for generated tests

Compatibility

  • Requires React v16.8.0 or higher
  • Functional components + React hooks
  • Not yet compatible with component libraries or Context API

Troubleshooting ⁉️

  • Jest docs
  • Enzyme docs
  • Error: Unable to resolve dependency tree while installing enzyme-adapter-react-16
    • Add peerDependencies to your package.json file
      "peerDependencies": { "react": "^16.8.0 || ^17.0.0", "react-dom": "^16.8.0 || ^17.0.0" }

Contributing

Examin is open source on Github through the tech accelerator umbrella OS Labs. Please read the contribution documentation to learn more on how you can participate in improvements.

Core Team 💼

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].