-
Notifications
You must be signed in to change notification settings - Fork 395
/
test_all.php
76 lines (60 loc) · 1.8 KB
/
test_all.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
<?php
require_once '../../vendor/simpletest/simpletest/unit_tester.php';
require_once '../../vendor/simpletest/simpletest/reporter.php';
require_once 'config.php';
print '<h1>OpenFlights PHP/SQL Test Suite</h1>';
// Helper functions
$test = new TestSuite('Helper');
$test->addFile('helper.php');
$test->run(new HtmlReporter());
// Create user
$test = new TestSuite('Signup/Settings');
$test->addFile('settings.php');
$test->run(new HtmlReporter());
$test = new TestSuite('Login');
$test->addFile('login.php');
$test->run(new HtmlReporter());
// Add flights
$test = new TestSuite('Submit/Flights');
$test->addFile('submit.php');
$test->run(new HtmlReporter());
// Trips
$test = new TestSuite('Trips');
$test->addFile('trip.php');
$test->run(new HtmlReporter());
// Map
$test = new TestSuite('Map');
$test->addFile('map.php');
$test->run(new HtmlReporter());
// "Analyze" stats
$test = new TestSuite('Analyse (Stats)');
$test->addFile('stats.php');
$test->run(new HtmlReporter());
// Top 10 stats
$test = new TestSuite('Top 10');
$test->addFile('top10.php');
$test->run(new HtmlReporter());
// Add airport
$test = new TestSuite('Airport Search');
$test->addFile('apsearch.php');
$test->run(new HtmlReporter());
// Add airline
$test = new TestSuite('Airline Search');
$test->addFile('alsearch.php');
$test->run(new HtmlReporter());
// Autocompletion results
$test = new TestSuite('Autocomplete');
$test->addFile('autocomplete.php');
$test->run(new HtmlReporter());
// Route maps
$test = new TestSuite('Routes');
$test->addFile('routes.php');
$test->run(new HtmlReporter());
// Reset password
$test = new TestSuite('Reset password');
$test->addFile('resetpw.php');
$test->run(new HtmlReporter());
// ...and cleanup after all that
$test = new TestSuite('Cleanup');
$test->addFile('cleanup.php');
$test->run(new HtmlReporter());