forked from cypht-org/cypht-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.html
108 lines (106 loc) · 5.29 KB
/
tests.html
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>License</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="img/icon.ico">
<link rel="stylesheet" href="site.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="img/logo.svg" width="120" height="60" alt="">
</a>
<button class="navbar-toggler toggler-home" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse " id="navbarSupportedContent">
<ul class="navbar-nav ml-lg-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home <span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="features.html">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="security.html">Security</a>
</li>
<li class="nav-item">
<a class="nav-link" href="modules.html">Mods</a>
</li>
<li class="nav-item">
<a class="nav-link" href="license.html">License</a>
</li>
<li class="nav-item active">
<!--<a class="nav-link" href="tests.html">Test</a>-->
</li>
<li class="nav-item">
<a class="nav-link" href="documentation.html">Documentation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://unencumberedbyfacts.com" target="_blank">Blog</a>
</li>
<li class="nav-item">
<a onclick="document.getElementsByClassName('navbar-collapse')[0].style.display='none';"
class="nav-link" href="contribute.html">Contribute</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<section class="content-section container">
<h2>Tests</h2>
<hr>
<p>
Cypht uses PHPUnit to run our unit tests, and Selenium for integration testing. I periodically update the HTML
coverage report located here:<br/><br/><a href="docs/test_coverage/index.html" title="Tests">/docs/test_coverage/index.html</a></br></br>
Currently our unit tests only cover the application framework (all the code under "lib/"), and the core
module set, and our Selenium tests are still pretty basic. We make use of the following services that generously
provide
access to Open Source projects:<br/>
</p>
<hr>
<h3>Travis CI</h3>
<a href="https://travis-ci.org/cypht-org/cypht/builds">https://travis-ci.org/cypht-org/cypht/builds</a>
<p>Travis CI is a really cool continuous integration service that we use to re-run our unit and UI tests every time
a change is pushed to Github. Our Travis build is 18 combinations, 6 versions of PHP (5.4, 5.5, 5.6, 5.7, 7.0,
7.1,
7.2) with 3 different databases (Mysql, Postgresql, Sqlite). </p>
<hr>
<h3>BrowserStack</h3>
<a href="https://www.browserstack.com/">https://www.browserstack.com/</a><br/><br/>
<p>BrowserStack is a cloud based Selenium grid we use to run our UI tests. We connect to it directly from Travis CI.
Currently we test 4 browsers (Safari, IE, Edge, and Chrome). Firefox is disable for now due to a compatibility
issue
with the test environment.</p>
<hr>
<h3>Coveralls</h3>
<a href="https://coveralls.io/github/cypht-org/cypht">https://coveralls.io/github/cypht-org/cypht</a><br/><br/>
<p>Coveralls.io provides access to the PHPUnit test coverage report, and is updated every time code is pushed to
Github.
It has some cool metrics to track unit test coverage over time, and in general is a nicer UI than the PHPUnit
HTML
report.</p>
<hr>
<h3>Scrutinizer</h3>
<a href="https://scrutinizer-ci.com/g/cypht-org/cypht/">https://scrutinizer-ci.com/g/cypht-org/cypht/</a><br/><br/>
<p>Scrutinizer is a static code analyzer with a lot of great options. It understands our doc-string format and
provides
additinal information about potential type mismatches, in addition to a number of other static checks. Currently
I have it limited to the application framework (all the code under "lib/"). Like the Travis builds and Coveralls
reports,
a new analysis is run every time we push code to Github.</p>
</section>
<script src="jquery.slim.min.js"></script>
<script src="bootstrap.bundle.min.js"></script>
</body>
</html>