---
# System prepended metadata

title: Introduction to Testing
tags: [NTURT, electrical_system, tutorial]

---

# Introduction to Testing
###### tags: `tutorial` `electrical_system` `NTURT`

## Why testing?

It's obvious, don't you think? Testing helps find bugs in softwares before it becomes a disaster. But when it comes to controlling a racing car, thing aren't that easy comparing to developing a game, we also have to take hardware into account.

### Testing model

The figure below shows the typical workflow in model-base design, where code is generated from models such as simulink.

![](https://www.mathworks.com/help/simscape/ug/rt_mbd_design_to_realization_flow_chart.png)

> figure courtesy to [MathWorks](https://www.mathworks.com/help/simscape/ug/what-is-hardware-in-the-loop-simulation.html)

Althouth in nturt we directly code the application, but similar test appoarch also applies.
