Skip to content

Commit f7e369d

Browse files
committed
Updated reports
1 parent 5a2ce75 commit f7e369d

17 files changed

+940
-458
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"graph.BreadthFirstSearchSpec":{"executedFeatures":["should find a route for complex graph","should find a route for simple graph"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":2,"totalFeatures":2,"passed":2,"successRate":1.0,"time":162},"title":"","narrative":""},"graph.SearchAlgorithmSpec":{"executedFeatures":["should find a route for a complex graph"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":46},"title":"Comparison of two algorithms","narrative":""},"graph.DijkstrasAlgorithmSpec":{"executedFeatures":["should find a route for a complex graph","should find a route for a medium graph","should find a route for a simple graph"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":3,"totalFeatures":3,"passed":3,"successRate":1.0,"time":66},"title":"","narrative":""},"graph.GraphSpec":{"executedFeatures":["should calculate distance"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":19},"title":"","narrative":""},"graph.BreadthFirstSearchSpec":{"executedFeatures":["should find a route for complex graph","should find a route for simple graph"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":2,"totalFeatures":2,"passed":2,"successRate":1.0,"time":133},"title":"Breadth First Search Algorithm","narrative":"Breadth First Search algorithm for finding the shortest paths between nodes in a graph"},"graph.SearchAlgorithmSpec":{"executedFeatures":["should find a route for a complex graph"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":40},"title":"Comparison of two algorithms","narrative":""},"graph.DijkstrasAlgorithmSpec":{"executedFeatures":["should find a route for a complex graph","should find a route for a medium graph","should find a route for a simple graph"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":3,"totalFeatures":3,"passed":3,"successRate":1.0,"time":67},"title":"Dijkstra's Algorithm","narrative":"Dijkstra's algorithm is an algorithm for finding the fastest paths between nodes in a graph"},"graph.GraphSpec":{"executedFeatures":["should be zero distance for an empty path","should be zero distance for any one node path","should calculate distance for a path","should return edges for a given node","should throw NPE for incorrect path"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":5,"totalFeatures":5,"passed":5,"successRate":1.0,"time":125},"title":"Generic Graph","narrative":"A generic implementation of Graph structure"}}

target/spock-reports/algorithm.BreadthFirstSearchSpec.html renamed to docs/spock-reports/graph.BreadthFirstSearchSpec.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ <h2>Report for graph.BreadthFirstSearchSpec</h2>
251251
</div>
252252
<div class='summary-report'>
253253
<h3>Summary:</h3>
254-
<div class='date-test-ran'>Created on Mon Dec 27 22:21:38 EET 2021 by rabes</div>
254+
<div class='date-test-ran'>Created on Sun Jan 02 19:39:17 EET 2022 by rabes</div>
255255
<table class='summary-table'>
256256
<thead>
257257
<tr>
@@ -272,11 +272,21 @@ <h3>Summary:</h3>
272272
<td>0</td>
273273
<td>0</td>
274274
<td>100.0%</td>
275-
<td>0.039 seconds</td>
275+
<td>0.133 seconds</td>
276276
</tr>
277277
</tbody>
278278
</table>
279279
</div>
280+
<pre class='title'>Breadth First Search Algorithm</pre>
281+
<pre class='narrative'>Breadth First Search algorithm for finding the shortest paths between nodes in a graph</pre>
282+
<div class='issues'>
283+
<div>See:</div>
284+
<ul>
285+
<li>
286+
<a href='https://en.wikipedia.org/wiki/Breadth-first_search'>https://en.wikipedia.org/wiki/Breadth-first_search</a>
287+
</li>
288+
</ul>
289+
</div>
280290
<h3>Features:</h3>
281291
<table class='features-table'>
282292
<colgroup>
@@ -325,13 +335,13 @@ <h3>Features:</h3>
325335
<div class='block-kind'>When:</div>
326336
</td>
327337
<td>
328-
<div class='block-text'>we use Breadth First Search graph to find a path</div>
338+
<div class='block-text'>we use Breadth First Search algorithm to find a path</div>
329339
</td>
330340
</tr>
331341
<tr>
332342
<td></td>
333343
<td>
334-
<pre class='block-source'>def path = graph.findPath(graph, source, target)</pre>
344+
<pre class='block-source'>def path = algorithm.findPath(graph, source, target)</pre>
335345
</td>
336346
</tr>
337347
<tr>
@@ -449,13 +459,13 @@ <h3>Features:</h3>
449459
<div class='block-kind'>When:</div>
450460
</td>
451461
<td>
452-
<div class='block-text'>we use Breadth First Search graph to find a path</div>
462+
<div class='block-text'>we use Breadth First Search algorithm to find a path</div>
453463
</td>
454464
</tr>
455465
<tr>
456466
<td></td>
457467
<td>
458-
<pre class='block-source'>def path = graph.findPath(graph, source, target)</pre>
468+
<pre class='block-source'>def path = algorithm.findPath(graph, source, target)</pre>
459469
</td>
460470
</tr>
461471
<tr>

target/spock-reports/algorithm.DijkstrasAlgorithmSpec.html renamed to docs/spock-reports/graph.DijkstrasAlgorithmSpec.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ <h2>Report for graph.DijkstrasAlgorithmSpec</h2>
251251
</div>
252252
<div class='summary-report'>
253253
<h3>Summary:</h3>
254-
<div class='date-test-ran'>Created on Mon Dec 27 22:21:38 EET 2021 by rabes</div>
254+
<div class='date-test-ran'>Created on Sun Jan 02 19:39:17 EET 2022 by rabes</div>
255255
<table class='summary-table'>
256256
<thead>
257257
<tr>
@@ -272,11 +272,21 @@ <h3>Summary:</h3>
272272
<td>0</td>
273273
<td>0</td>
274274
<td>100.0%</td>
275-
<td>0.073 seconds</td>
275+
<td>0.067 seconds</td>
276276
</tr>
277277
</tbody>
278278
</table>
279279
</div>
280+
<pre class='title'>Dijkstra's Algorithm</pre>
281+
<pre class='narrative'>Dijkstra's algorithm is an algorithm for finding the fastest paths between nodes in a graph</pre>
282+
<div class='issues'>
283+
<div>See:</div>
284+
<ul>
285+
<li>
286+
<a href='https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm'>https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm</a>
287+
</li>
288+
</ul>
289+
</div>
280290
<h3>Features:</h3>
281291
<table class='features-table'>
282292
<colgroup>
@@ -328,13 +338,13 @@ <h3>Features:</h3>
328338
<div class='block-kind'>When:</div>
329339
</td>
330340
<td>
331-
<div class='block-text'>we use Dijkstra's graph to find a path</div>
341+
<div class='block-text'>we use Dijkstra's algorithm to find a path</div>
332342
</td>
333343
</tr>
334344
<tr>
335345
<td></td>
336346
<td>
337-
<pre class='block-source'>def path = graph.findPath(graph, source, target)</pre>
347+
<pre class='block-source'>def path = algorithm.findPath(graph, source, target)</pre>
338348
</td>
339349
</tr>
340350
<tr>
@@ -452,13 +462,13 @@ <h3>Features:</h3>
452462
<div class='block-kind'>When:</div>
453463
</td>
454464
<td>
455-
<div class='block-text'>we use Dijkstra's graph to find a path</div>
465+
<div class='block-text'>we use Dijkstra's algorithm to find a path</div>
456466
</td>
457467
</tr>
458468
<tr>
459469
<td></td>
460470
<td>
461-
<pre class='block-source'>def path = graph.findPath(graph, source, target)</pre>
471+
<pre class='block-source'>def path = algorithm.findPath(graph, source, target)</pre>
462472
</td>
463473
</tr>
464474
<tr>
@@ -593,13 +603,13 @@ <h3>Features:</h3>
593603
<div class='block-kind'>When:</div>
594604
</td>
595605
<td>
596-
<div class='block-text'>we use Dijkstra's graph to find a path</div>
606+
<div class='block-text'>we use Dijkstra's algorithm to find a path</div>
597607
</td>
598608
</tr>
599609
<tr>
600610
<td></td>
601611
<td>
602-
<pre class='block-source'>def path = graph.findPath(graph, source, target)</pre>
612+
<pre class='block-source'>def path = algorithm.findPath(graph, source, target)</pre>
603613
</td>
604614
</tr>
605615
<tr>

0 commit comments

Comments
 (0)