Skip to content

Latest commit

 

History

History

tdd-and-bdd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Test-Driven Development and Behavior-Driven Development

Tests help us to write better programmes, better code.

In this project, we take a tour to several test framework, such as jasmine, mocha, jest.

Some of them are very powerful, while others may be more flexible, choose the one that meets your requirements.

If you are new to test framework, please do start with jasmine, which provides wonderful tutorial!

Personally, I perfer expect style assertion and jasmine.

Testing library: Simple and complete testing utilities that encourage good testing practices.

UI Library/Framework Tests

angulest is a project generated by ng new. Most of the test cases come from this document, which is a comprehensive guide for writing test in Angular with Jasmine.

vuest is a project generated by vue-cli, there are many unit test case examples. Vue.js has its own test framework called @vue/test-utils. And there is a useful handbook.

react-enzyme is a project generated by create-react-app@3.x, writing test with Jest and Enzyme.

react-testing-lib is a project generated by create-react-app@4.x, writing test with Jest and React-Testing-Library.