http://rocka.co

LET'S BUILD TOGETHER

Unit Testing

on Javascript

Introduction 

Software Testing

Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.

Types of Testing

LET'S BUILD TOGETHER

Functional

No Functional

- Smoke

- Unit

- Integration

- User Acceptance 

- Regression

...

- Performance

- Load

- Scalability

- Usability

- Security

...

Level Functional Testing

LET'S BUILD TOGETHER

Unit test

LET'S BUILD TOGETHER

- It focuses on execute a minimal unit of code.

 

- It search that each unit satisfy in agreement of requirements.

Example of use

LET'S BUILD TOGETHER

Format of hour

Input number Output 
0 12:00am
5 05:00am
12 12:00pm
16 04:00pm
23 11:00pm
24 error

Unit Testing with:

official website: https://jasmine.github.io/

Test Runner:

- Code Coverage

- Watch Changes of test and .js files

- Configure browsers for run test

LET'S BUILD TOGETHER

rocka.co

jdmorales092@gmail.com

John Darwin Morales

Frontend Developer

Introduction to unit Testing on Javascript

By product@dailybot.com

Introduction to unit Testing on Javascript

  • 1,239