Sign in Join
FPDoc Onlineexperiment

TSources.AddTestFiles procedure

Member of TSourcespublicIn unit fpMkUnit

Adds test files to the source collection

Declaration

pascal
procedure AddTestFiles(const AFileMask: string; 
 const ASearchPathPrefix: string; 
 Recursive: Boolean=False)

Arguments

AFileMask

File pattern mask for selecting test files

ASearchPathPrefix

Search path prefix for locating test files

Recursive

Whether to search subdirectories recursively

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.