Debian Codegraph @

doc/man/man1/cgreen-runner.1

raw
1 .TH CGREEN-RUNNER 1
2
3
4 .SH NAME
5 cgreen-runner \- an auto-discovering runner for the Cgreen unittest and mocking framework
6
7
8 .SH SYNOPSIS
9 .B cgreen\-runner
10 [\fB\-\-colour\fR]
11 [\fB\-\-xml\fR \fIprefix\fR]
12 [\fB\-\-suite\fR \fIname\fR]
13 [\fB\-\-verbose\fR]
14 [\fB\-\-no\-run\fR]
15 [\fB\-\-help\fR]
16 ( \fILIBRARY\fR [\fItest\fR] )+
17
18
19 .SH DESCRIPTION
20 .B Cgreen
21 is a framework for creating and running compact and easy-to-read
22 unittests for C and/or C++. After compiling your tests and linking
23 them together with the code/class/subject under test (CUT/SUT) into a
24 shared dynamically loadable \fILIBRARY\fR you can auto-discover and
25 run all tests using the
26 .B cgreen-runner
27 without having to manually add each and every test that you write to a
28 suite programmatically.
29 .PP
30 This makes the TDD cycle even faster and less error-prone, one less thing to remember.
31
32
33 .SS "Usage:"
34 Discover and run all, or a single named, cgreen test(s) from one or multiple
35 dynamically loadable library.
36 .PP
37 A single test can be run using the form [<context>:]<name> where <context> can
38 be omitted if there is no context.
39
40
41 .SH OPTIONS
42
43 .TP
44 .BR \-c ", " \-\-colours/colors
45 Use colours to emphasis result (requires ANSI\-capable terminal)
46
47 .TP
48 .BR \-x ", " \-\-xml " " \fIprefix\fR
49 Instead of messages on stdout, write results into one XML\-file per
50 suite, compatible with Hudson/Jenkins CI. The filename(s) will
51 be '\fIprefix\fR\-<suite>.xml'
52
53 .TP
54 .BI "\-s, \-\-suite " name
55 Give the top level suite
56 .I name
57 instead of the name in the \fILIBRARY\fR.
58
59 .TP
60 .B "\-n, \-\-no\-run"
61 Don't run the tests.
62
63 .TP
64 .B "\-v, \-\-verbose"
65 Show progress information during run.
66
67 .TP
68 .B "\-V, \-\-version"
69 Show version information and exit.
70
71 .TP
72 .B "\-h, \-\-help"
73 Print some usage information and exit.
74
75 .SH "SEE ALSO"
76 cgreen(5)
77
78 .PP
79 The full documentation for
80 .B cgreen-runner
81 and
82 .B the Cgreen framework
83 is in the
84 .B Cgreen
85 manual available at
86 .UR https://github.com/cgreen-devs/cgreen
87 GitHub
88 .UE .
89