Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TSources.AddTestFiles

Adds test files to the source collection

Declaration

Source position: fpmkunit.pp line 922

public procedure TSources.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.


Documentation generated on: Dec 15 2025