forked from marmelab/phpunit-d3-report
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (43 loc) · 2.64 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PHPUnit report</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
</head>
<body>
<a href="https://github.com/marmelab/phpunit-d3-report"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
<div class="content">
<div class="container">
<h1>PHPUnit report</h1>
<p class="lead">This visualization tool provides a quick way to monitor your PHPUnit test suites. With a single glance, you will be able to identify the slowest tests, helping you to improve the overall execution time of your tests.</p>
<p id="sample_introduction">Here is a sample of report this utility can generate. It is based on <a href="https://github.com/symfony/symfony/tree/2.3">Symfony 2.3</a> test suite:</p>
<div id="bubbles"></div>
<p class="text-right">
<a href="#" id="json_report_download_link">Download JSON report</a>
</p>
<h2>How to generate your own report?</h2>
<p>To generate a report, simply execute your PHPUnit test suite including the <code>--log-junit</code> argument, such as:</p>
<code>
<pre>phpunit --log-junit report.xml</pre>
</code>
<p>Then, open the file and copy/paste its content to the following form:</p>
<form id="report_form" class="text-right">
<p>
<textarea name="report" id="report" class="form-control" rows="6"></textarea><br />
<button class="btn btn-primary" type="submit">Generate</button>
</p>
</form>
<p>If you want to re-use this chart in your own application or parametrize it, you can find all technical details on the <a href="https://github.com/marmelab/phpunit-d3-report">README file</a>.</p>
<h2>Licence</h2>
<p>This project is released under the MIT licence (thanks to <a href="http://www.marmelab.com">Marmelab</a>. It means you can blow unlimited bubbles in all your projects, with the only obligation to embed the original licence file into your fork.</p>
</div>
</div>
<script src="bower_components/d3/d3.min.js"></script>
<script src="bower_components/momentjs/min/moment.min.js"></script>
<script src="js/report-transformer.js"></script>
<script src="js/d3.phpunitBubbles.js"></script>
<script src="js/bubbles.js"></script>
</body>
</html>