Skip to content

TSources.AddTestFiles

Adds test files to the source collection

Declaration

Source position: fpmkunit.pp line 926

public 
procedure TSources.AddTestFiles(const AFileMask: string; 
                               const ASearchPathPrefix: string; 
                               Recursive: Boolean=False);

Description

AddTestFiles adds test files matching the specified file mask pattern to the source collection. Test files contain unit tests and validation code for verifying package functionality.

The method searches for files matching AFileMask and includes them in the package for testing purposes. Test files are used during package validation and quality assurance.