filmov
tv
Software Engineering: Why automatically generate test cases?

Показать описание
Generally, unit test is all about providing evidence that requirements have been fulfilled in the implementation of code. But there are several reasons why creating unit tests based on information available in the code itself can be useful. This video explains four use cases:
* Rapidly obtain high levels of code coverage
* Aid with code refactoring
* Perform robustness testing
* Learn how to structure a test
It goes on to show two examples. The first leverages some C code running with the IAR Embedded Workbench, and the second tests some autogenerated C++ code with Visual Studio
00:00 Video introduction
00:11 Why perform automatic test case generation?
01:30 Automatic test case generation for a C file using IAR Embedded Workbench
03:19 Viewing the autogenerated test cases
03:50 Automatic test case generation for a C++ file using Visual Studio
* Rapidly obtain high levels of code coverage
* Aid with code refactoring
* Perform robustness testing
* Learn how to structure a test
It goes on to show two examples. The first leverages some C code running with the IAR Embedded Workbench, and the second tests some autogenerated C++ code with Visual Studio
00:00 Video introduction
00:11 Why perform automatic test case generation?
01:30 Automatic test case generation for a C file using IAR Embedded Workbench
03:19 Viewing the autogenerated test cases
03:50 Automatic test case generation for a C++ file using Visual Studio