Configuration Properties for Jasmine Maven Plugin

Comments

The configuration properties for the jasmin maven plugin in XML format. From the the Jasmine maven plugin homepage and the plugin source

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
<configuration>

  <!--
  where is your javascript - default is src/main/javascript
  below is a typical tomcat project
  -->
  <jsSrcDir>${project.basedir}/src/main/webapp/scripts</jsSrcDir>

  <!--
  an ordered list of filters to match script source files
  -->
  <sourceIncludes>
    <!--   add the ones you want first  -->
    <include>**/require-jquery.js</include>
    <!--   these are the defaults  -->
    <include>**/*.js</include>
    <include>**/*.coffee</include>
  </sourceIncludes>

  <!--
  an ordered list of filters to match script source files NOT to be included
  -->
  <sourceExcludes>
    <exclude>**/modules/vendor/*.js</exclude>
  </sourceExcludes>

  <!--
  where are your test script - default is src/test/javascript
  below is a typical tomcat project
  -->
  <jsTestSrcDir>${project.basedir}/src/test/javascript</jsTestSrcDir>

  <!--
  an ordered list of filters to match script spec files NOT to be included
  -->
  <specIncludes>
    <!--   add the ones you want first  -->
    <include>**/jasmine-*.js</include>
    <include>**/mock-ajax.js</include>
    <include>**/mock_responses.js</include>
    <!--   these are the defaults  -->
    <include>**/*.js</include>
    <include>**/*.coffee</include>
  </specIncludes>

  <!--
  an ordered list of filters to match script source files NOT to be included
  -->
  <specExcludes>
    <exclude>**/modules/vendor/*.js</exclude>
  </specExcludes>

  <!--
  the port that the jasmine:bdd goal binds to
  -->
  <serverPort>8234</serverPort>


  <!--
  when true, specs won't be executed during the build
  will most likely come in handy when set on the command line, like so:
  mvn package -DskipTests
  -->
  <skipTests>false</skipTests>

  <!--
  the style with which the plugin outputs results during the build
  values: progress (terse) or documentation (default)
  -->
  <format>documentation</format>

  <!--
  the type of browser HtmlUnit emulates when your specs run during the build
  possible other value: INTERNET_EXPLORER_6, INTERNET_EXPLORER_7, INTERNET_EXPLORER_8
  default: FIREFOX_3
  see HtmlUnit documentation to see if any have been added since
   -->
  <browserVersion>FIREFOX_3_6</browserVersion>

  <!--
  when true, failing specs break the build
  -->
  <haltOnFailure>false</haltOnFailure>

  <!--
  The template used to generate the specRunner file
  The default one is here:
  https://github.com/searls/jasmine-maven-plugin/blob/master/src/main/resources/jasmine-templates/SpecRunner.htmltemplate
  -->
  <customRunnerTemplate>${project.basedir}/src/main/resources/jasmine-templates/SpecRunner.htmltemplate</customRunnerTemplate>

  <!--
  a list of to scripts that need to be loaded before any others.
  Mostly useful to load remote scripts
  -->
  <preloadSources>
    <source>http://a.com/lib.js</source>
  </preloadSources>

  <!--
  when spec execution exceeds the timeout (in seconds), the build fails
  -->
  <timeout>300</timeout>

  <!--
  the name of the generated JUnit XML report
  the plugin generates XML of the same brand JUnit does; this is handy for when your CI server is capable of aggregating these XML files (like Jenkins freestyle projects)
  -->
  <junitXmlReportFileName>TEST-jasmine.xml</junitXmlReportFileName>

  <!--
  True to increase HtmlUnit output and attempt reporting on specs even if a timeout occurred.
  -->
  <debug>false</debug>

  <!--
  Source encoding
  -->
  <sourceEncoding>utf-8</sourceEncoding>
</configuration>

Comments