-
Notifications
You must be signed in to change notification settings - Fork 8
/
jasmine.man
107 lines (107 loc) · 2.76 KB
/
jasmine.man
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.\" Copyright 2015 Philip Chimento <[email protected]>
.TH JASMINE 1 "March 1, 2015"
.\" Please adjust this date whenever revising the manpage.
.SH NAME
jasmine \- run Jasmine test suites
.SH SYNOPSIS
.B jasmine
.RB [ \-\-help ]
.RB [ \-\-color ]
.RB [ \-\-no\-color ]
.RB [ \-\-config
.IR file ]
.RB [ \-\-no\-config ]
.RB [ \-\-exclude
.IR file ]
.RB [ \-\-verbose ]
.RB [ \-\-tap ]
.RB [ \-\-junit
.RI [ file "]] " files " ..."
.SH DESCRIPTION
Jasmine is a behavior-driven development framework for the GJS Javascript
interpreter.
The
.B jasmine
command is a test runner for Jasmine test suites that has several different
output formats.
.PP
The
.I files
specified on the command line are imported and all Jasmine specs defined therein
are executed.
You may also specify whole directories in
.IR files ,
in which case the directories are searched recursively and files ending in
.I .js
will be imported.
.SH OPTIONS
.TP
.B \-\-color
Print output in color, if the chosen output format supports it.
.TP
.BI \-\-config " file"
Use
.I file
as the configuration file, instead of
.IR jasmine.json .
.TP
.BI \-\-exclude " file"
Don't execute specs in
.I file
(which may also be a wildcard pattern) even if they are in a directory specified
on the command line.
(Don't forget to escape wildcards so the shell doesn't expand them.)
.TP
.B \-\-help
Show summary of options.
.TP
.BI \-\-junit " file"
In addition to the format used to report results to the console (default,
.BR \-\-verbose ,
or
.BR \-\-tap ,)
output test results to a JUnit-style XML file to
.IR file ,
suitable for integration with Jenkins.
If
.I file
is not given, output to
.I report.xml
in the current directory.
.TP
.B \-\-no\-color
Do not print output in color, even if the chosen output format supports it.
.TP
.B \-\-no\-config
Don't use a configuration file, even if one is present.
.TP
.B \-\-tap
Report results with the TAP (Test Anything Protocol) reporter, suitable for
integration with Automake.
.TP
.B \-\-verbose
Report results with the verbose reporter, similar to Mocha's default reporter.
.SH EXIT STATUS
The
.B jasmine
utility exits with 0 on success, or with 1 if any tests failed or an internal
error occurred.
.SH ENVIRONMENT
The JASMINE_JUNIT_REPORTS_DIR environment variable controls where JUnit-style
XML reports are placed, if a relative path is passed to
.B \-\-junit
on the command line.
.PP
The JASMINE_UNINSTALLED environment variable can be used for debugging Jasmine.
It is not recommended to set this variable during normal use.
.SH FILES
By default, Jasmine reads from a configuration file called
.I jasmine.json
in the current directory, if such a file exists.
This can be influenced with the
.B \-\-config
and
.B \-\-no\-config
options.
.SH BUGS
Report bugs at https://github.com/ptomato/jasmine-gjs/issues on GitHub.