aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/doc/src/cover.xml
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-10-12 15:49:22 +0200
committerSiri Hansen <[email protected]>2012-10-30 11:17:57 +0100
commit8179e41007922c059b8f9441f563edf694b8b315 (patch)
tree5aa16454a445071af2f981ffd53c4f17b8bfeef3 /lib/tools/doc/src/cover.xml
parent6b57abc785818bccf8ee615d3071dc24fa54daca (diff)
downloadotp-8179e41007922c059b8f9441f563edf694b8b315.tar.gz
otp-8179e41007922c059b8f9441f563edf694b8b315.tar.bz2
otp-8179e41007922c059b8f9441f563edf694b8b315.zip
[cover] Add support for test_server
OTP-10523 * Added cover:flush(Nodes), which will fetch data from remote nodes without stopping cover on those nodes. * Added cover:get_main_node(), which returns the node name of the main node. This is used by test_server to avoid {error,not_main_node} when a slave starts another slave (e.g. in test_server's own tests).
Diffstat (limited to 'lib/tools/doc/src/cover.xml')
-rw-r--r--lib/tools/doc/src/cover.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/tools/doc/src/cover.xml b/lib/tools/doc/src/cover.xml
index 683acc025d..be0fd5bd47 100644
--- a/lib/tools/doc/src/cover.xml
+++ b/lib/tools/doc/src/cover.xml
@@ -5,7 +5,7 @@
<header>
<copyright>
<year>2001</year>
- <year>2011</year>
+ <year>2012</year>
<holder>Ericsson AB, All Rights Reserved</holder>
</copyright>
<legalnotice>
@@ -104,6 +104,8 @@
remove nodes. The same Cover compiled code will be loaded on each
node, and analysis will collect and sum up coverage data results
from all nodes.</p>
+ <p>To only collect data from remote nodes without stopping
+ <c>cover</c> on those nodes, use <c>cover:flush/1</c></p>
</description>
<funcs>
<func>
@@ -477,6 +479,17 @@
remote nodes is fetched and stored on the main node.</p>
</desc>
</func>
+ <func>
+ <name>flush(Nodes) -> ok | {error,not_main_node}</name>
+ <fsummary>Collect cover data from remote nodes.</fsummary>
+ <type>
+ <v>Nodes = [atom()]</v>
+ </type>
+ <desc>
+ <p>Fetch data from the Cover database on the remote nodes and
+ stored on the main node.</p>
+ </desc>
+ </func>
</funcs>
<section>