-
Notifications
You must be signed in to change notification settings - Fork 24
/
tests.html
150 lines (149 loc) · 7.1 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!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>
<li class="nav-item">
<a class="nav-link" href="https://github.com/cypht-org/cypht-website/blob/master/tests.html">
<img src="img/edit_icon.png" alt="Edit Icon" width="23" height="23" style="vertical-align:middle;" title="Edit this page">
</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>
<!--Footer section-->
<section class="footer-section" id="contact">
<div class="container text-center">
<h2>Have a suggestion or a question?</h2>
<h3>Or maybe you want to throw huge wads of cash at us? </h3>
<p>We love feedback so let us know what you think!</p>
</div>
</section>
<section class=" social-section text-center">
<div class="container">
<div class="row">
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Page on Github</span><br>
<a href="https://github.com/cypht-org/cypht-website/blob/master/tests.html">Edit here</a>
</p>
</div>
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Fill out an issue at Github</span><br>
<a href="https://github.com/cypht-org/cypht/issues">Submit an issue</a>
</p>
</div>
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Chat with us at Gitter</span><br>
<a href="https://gitter.im/cypht-org/community">Cypht at Gitter</a>
</p>
</div>
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Want to contribute?</span><br>
<a href="contribute.html">Cypht website contribution</a>
</p>
</div>
</div>
</div>
</section>
<script src="jquery.slim.min.js"></script>
<script src="bootstrap.bundle.min.js"></script>
</body>
</html>