]> git.r.bdr.sh - rbdr/grafn/blob - doc/COVERAGE.md
Add Gitlab CI config
[rbdr/grafn] / doc / COVERAGE.md
1 # TOC
2 - [test/graph.js](#testgraphjs)
3 - [It colorizes the graph based on execution results](#it-colorizes-the-graph-based-on-execution-results)
4
5
6 <a name="testgraphjs"></a>
7 # test/graph.js
8 It throws an error if you try to run a non-existing vertex.
9
10
11 It runs a vertex if no dependencies are defined.
12
13
14 It does not run a vertex if it has unfulfilled dependencies.
15
16
17 It runs dependent vertices on completion of a vertex's action.
18
19
20 It ensures dependencies state is available before running dependents.
21
22
23 It gives dependent vertices a state including their dependencies' results.
24
25
26 It throws an error if a vertex throws an error.
27
28
29 It runs a vertex only once.
30
31
32 It can convert to a string representing the graph in graphviz format.
33
34
35 <a name="it-colorizes-the-graph-based-on-execution-results"></a>
36 ## It colorizes the graph based on execution results
37 It throws an error if a sub-step fails.
38
39
40 It adds the right colors according to execution.
41
42
43
44 ok - It colorizes the graph based on execution results
45
46 ok - test/graph.js
47 ----------|----------|----------|----------|----------|-------------------|
48 File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
49 ----------|----------|----------|----------|----------|-------------------|
50 All files | 100 | 100 | 100 | 100 | |
51 graph.js | 100 | 100 | 100 | 100 | |
52 ----------|----------|----------|----------|----------|-------------------|