1) An automatic code generator (ACG) produces source code from a model specification but must undergo rigorous testing to be qualified and trusted.
2) Integrated unit testing is proposed to achieve the exhaustiveness of unit testing using only integration tests by instrumenting the ACG with ghost code to monitor test coverage and results during integration testing.
3) The approach generates a large set of integration tests from block specifications to thoroughly cover the many configurations, allowing unit tests to be evaluated without editing intermediate languages.