In software development, a test harness is a collection of software and test data used by developers to unit test software models during development. A test harness will specifically refer to test drivers and stubs, which are programs that interact with the software being tested. Once a test harness is used to execute a test, they can also utilize a test library to generate reports.
Test harnesses are made up of test execution engines and test script repositories. A test execution engine is
Test harnesses are used in two main areas, automation testing and integration testing. Test harnesses in automation testing will use test scripts (commonly written in
Test harness vs test framework
Test harnesses are similar to, but not the same as testing frameworks. While test harnesses are the collection of software and test data used to test a program, test frameworks are the set of processes and procedures which automated tests are designed and implemented through. Test harnesses are used in automation testing and integration testing; however, test frameworks can be used in multiple scenarios such as data-driven, behavior-driven and keyword