aboutsummaryrefslogtreecommitdiff
path: root/doc/COVERAGE.md
blob: 43cf0e4ede943c25af52a9523d6703cfbade81e9 (plain)
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
# TOC
 - [test/graph.js](#testgraphjs)
   - [It colorizes the graph based on execution results](#it-colorizes-the-graph-based-on-execution-results)


<a name="testgraphjs"></a>
# test/graph.js
It throws an error if you try to run a non-existing vertex.


It runs a vertex if no dependencies are defined.


It does not run a vertex if it has unfulfilled dependencies.


It runs dependent vertices on completion of a vertex's action.


It ensures dependencies state is available before running dependents.


It gives dependent vertices a state including their dependencies' results.


It throws an error if a vertex throws an error.


It runs a vertex only once.


It can convert to a string representing the graph in graphviz format.


<a name="it-colorizes-the-graph-based-on-execution-results"></a>
## It colorizes the graph based on execution results
It throws an error if a sub-step fails.


It adds the right colors according to execution.



ok - It colorizes the graph based on execution results

ok - test/graph.js
----------|----------|----------|----------|----------|-------------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files |      100 |      100 |      100 |      100 |                   |
 graph.js |      100 |      100 |      100 |      100 |                   |
----------|----------|----------|----------|----------|-------------------|