-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathpest.php
More file actions
37 lines (31 loc) · 1.19 KB
/
pest.php
File metadata and controls
37 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
|--------------------------------------------------------------------------
| Pest Configuration File
|--------------------------------------------------------------------------
|
| This file contains the configuration settings for Pest PHP testing framework.
| You can customize various aspects of how tests behave and are reported.
|
*/
// Use the Laravel plugin for Laravel-specific testing features
uses(Tests\TestCase::class)->in('Feature', 'Unit', 'Arch');
// Set up global before/after hooks if needed
beforeAll(function () {
// Runs before all tests
fwrite(STDERR, "Starting test suite...\n");
});
afterAll(function () {
// Runs after all tests
fwrite(STDERR, "Finished test suite.\n");
});
// Configure verbosity for more informative output
$conf = $GLOBALS['argv'] ?? [];
if (in_array('--debug', $conf) || in_array('-v', $conf) || in_array('-vv', $conf) || in_array('-vvv', $conf)) {
// More verbose output when debug flags are used
ini_set('display_errors', 1);
error_reporting(E_ALL);
}
// Custom formatter for test output
// Note: Pest uses PHPUnit's underlying infrastructure for reporting
// Advanced customization would require a custom ResultPrinter class