Skip to content

TSources.AddTest

Adds test sources to the collection

Declaration

Source position: fpmkunit.pp line 921

public 
function TSources.AddTest(const AFiles: string) : TSource;

Description

Creates and adds a new test source entry that specifies test program files used for package validation and quality assurance. Test files verify that the package functionality works correctly.

Test sources are typically run during development and before package releases to ensure code quality and prevent regressions.