© Yiyi Sun 2019
Yiyi SunPractical Application Development with AppRunhttps://doi.org/10.1007/978-1-4842-4069-4_11

11. Unit Testing

Yiyi Sun1 
(1)
Thornhill, ON, Canada
 

Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation.1 Many companies and teams apply the test-driven development (TDD) process. Unit testing is important to these companies and teams.

The AppRun architecture is unit test–oriented. The three architectural parts—the state, view, and update (event handlers)—are decoupled and easy to test. In AppRun application development, there are two types of unit test. The first type is the white-box test, which is to ...

Get Practical Application Development with AppRun: Building Reliable, High-Performance Web Apps Using Elm-Inspired Architecture, Event Pub-Sub, and Components now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.