An embedded test runs inside the application process. For a GUI application, this can avoid splitting test work between an external test process and application hooks that provide remote access to widgets and internal state. section 11.3.4
There are two ways to bring the code together: embed tests in the application, or let tests launch the application. The second approach may fit automated builds more easily because testing frameworks and development tools already run tests. Starting the application first requires a way to initiate tests and collect their results. section 11.3.4
A plug-in mechanism can place tests inside the application. section 11.3.4
