-
Notifications
You must be signed in to change notification settings - Fork 988
/
simpletester.php
85 lines (78 loc) · 2.93 KB
/
simpletester.php
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* SimpleTester 1.1 configuration file.
* CodeIgniter-library for the SimpleTest unit test library, http://simpletest.org/
*/
/*
|--------------------------------------------------------------------------
| Test directory
|--------------------------------------------------------------------------
|
| All php files in this directory will be added to the unit test suite.
|
*/
$config['testDir'] = APPPATH . 'tests';
/*
|--------------------------------------------------------------------------
| Allowed autorun IPs
|--------------------------------------------------------------------------
|
| The tests will be automatically run from all IPs listed here, space
| separated. Useful to avoid testing on a production site, since tests can
| be too intensive to run on each request.
|
| Tests can still be run manually using the Run() method.
|
*/
$config['runFromIPs'] = '127.0.0.1';
/*
|--------------------------------------------------------------------------
| Reporter output class
|--------------------------------------------------------------------------
|
| The tests will display using this class. Pre-packaged classes:
| - HtmlReporter: A full html display of passed or failed tests.
| - ShowPasses: Detailed view of all passed tests.
| - SmallReporter: Displays a small status report in upper right corner.
| - MinimalReporter: Displays a small status report only when tests fail.
|
| Note that any output is sent before the view, so there will be Doctype
| problems if your view uses these. The Minimalreporter outputs nothing
| when everything is OK, so it's usually the best one to use when you have
| confirmed that the library is working correctly.
|
*/
$config['reporter'] = 'SmallReporter';
/*
|--------------------------------------------------------------------------
| Prevent autorun of tests
|--------------------------------------------------------------------------
|
| If noautorun is set to TRUE, tests are not automatically run.
| Tests can be run manually using the Run() method. Example:
|
| echo $this->simpletester->Run();
|
*/
$config['noautorun'] = FALSE;
/*
|--------------------------------------------------------------------------
| Test files extension
|--------------------------------------------------------------------------
|
| If your php files have a different extension, php5 for example,
| specify it here (without dot). All files ending with this extension will
| be added to the test suite.
|
*/
$config['fileExtension'] = 'php';
/*
|--------------------------------------------------------------------------
| Test title
|--------------------------------------------------------------------------
|
| Here you can specify the title of the test suite. Will be displayed for
| example in the MinimalReporter when a test fails.
|
*/
$config['testTitle'] = 'CodeIgnited Unit Tests';