forked from scala-ide/scala-ide
/
specs2-templates.xml
158 lines (137 loc) · 4.32 KB
/
specs2-templates.xml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template name="should"
description="A unit specification uses should/in blocks to construct examples."
id="scala.specs2.template.should"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${fragment}" should {
"${example}" in {
${success}
}
}</template>
<template name="can"
description="A unit specification uses can/in blocks to construct examples."
id="scala.specs2.template.can"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${fragment}" can {
"${example}" in {
${success}
}
}</template>
<template name=">>"
description="Create examples with no appended text."
id="scala.specs2.template.noTextExamples"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${fragment}" >> {
"${example}" in {
${success}
}
}</template>
<template name="in"
description="Create an example."
id="scala.specs2.template.in"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${example}" in {
${success}
}</template>
<template name="title"
description="Give a title to the Specification."
id="scala.specs2.template.title"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${specification_title}".title</template>
<template name="title (html)"
description="Give an HTML title to the Specification with a different path specified for the HTML reporting."
id="scala.specs2.template.titleHtml"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${specification_title}".title(filePath = "${description.html}")</template>
<template name="args"
description="Create arguments for the specification."
id="scala.specs2.template.args"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>args(${arg}=${value})</template>
<template name="text"
description="Create a Text fragment."
id="scala.specs2.template.text"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>"${text}".txt</template>
<template name="text fragment"
description="Create a Text fragment."
id="scala.specs2.template.textFragment"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>textFragment("${text_fragment}")</template>
<template name="step"
description="Create a Step fragment."
id="scala.specs2.template.step"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>step { ${initFunction}() }</template>
<template name="action"
description="Create an Action fragment."
id="scala.specs2.template.action"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>action { ${justDoIt} }</template>
<template name="link"
description="Create a link to another specification."
id="scala.specs2.template.link"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>link("${link_name}" ~ ("${spec_description}", new ${type}))</template>
<template name="see"
description="Add a link to another specification without including its fragments for execution."
id="scala.specs2.template.see"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>see(new ${type})</template>
<template name="include"
description="Include another specification."
id="scala.specs2.template.include"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>include(new ${type})</template>
<template name="p"
description="Formatting fragment p."
id="scala.specs2.template.p"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>p</template>
<template name="br"
description="Formatting fragment br."
id="scala.specs2.template.br"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>br</template>
<template name="t"
description="Formatting fragment t."
id="scala.specs2.template.t"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>t</template>
<template name="bt"
description="Formatting fragment bt."
id="scala.specs2.template.bt"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>bt</template>
<template name="end"
description="Formatting fragment end."
id="scala.specs2.template.end"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>end</template>
<template name="endp"
description="Formatting fragment endp."
id="scala.specs2.template.endp"
context="org.scala-ide.sdt.core.templates"
enabled="true"
>endp</template>
</templates>