Project Test Files

Index of All Documentation » Wing Pro Reference Manual » Unit Testing »


A subset of all the files in the project may be added to the Testing tool by specifying one or more Test file patterns under the Testing tab of Project Properties. This can be initiated with Add Files from Project in the Testing menu.

Any project file that matches a test file pattern is considered to be a test file, and will be displayed in the Testing tool. The list will update automatially as project files are added and removed or the contents of project directories changes.

Test file patterns can be applied to the full path of the test file. For example, the wildcard pattern internals*/*/test_*.py would match files named test_*.py in any directory below a directory with a name starting with internals. A similar approach works with regular expression style patterns. For details on the syntax for wildcards, see Wildcard Search Syntax. For details on the syntax for regular expressions, see Regular Expression Syntax in the Python documentation.