60 <hlm:codescanner dest="${codescanner.output.dir}" |
60 <hlm:codescanner dest="${codescanner.output.dir}" |
61 format="${codescanner.output.type}" |
61 format="${codescanner.output.type}" |
62 configuration="${codescanner.config}"> |
62 configuration="${codescanner.config}"> |
63 <path refid="src.path"/> |
63 <path refid="src.path"/> |
64 </hlm:codescanner> |
64 </hlm:codescanner> |
|
65 <au:assertLogContains text="Running codescanner with arguments 'codescanner -c"/> |
65 <au:assertLogContains text="Successfully executed codescanner"/> |
66 <au:assertLogContains text="Successfully executed codescanner"/> |
66 <au:assertLogContains text="Output format: xml,html"/> |
67 <au:assertLogContains text="Output format: xml,html"/> |
67 <au:assertLogContains text="data\src\exclude.txt"/> |
68 <au:assertLogContains text="data\src\exclude.txt"/> |
68 <au:assertLogContains text="data\src2\exclude.txt"/> |
69 <au:assertLogContains text="data\src2\exclude.txt"/> |
69 <au:assertFileExists file="${codescanner.output.dir}/problemIndex.xml"/> |
70 <au:assertFileExists file="${codescanner.output.dir}/problemIndex.xml"/> |
111 <au:assertLogContains text="Output format: xml,html"/> |
112 <au:assertLogContains text="Output format: xml,html"/> |
112 <au:assertLogContains text="data\src\exclude.txt"/> |
113 <au:assertLogContains text="data\src\exclude.txt"/> |
113 <au:assertLogContains text="data\src2\exclude.txt"/> |
114 <au:assertLogContains text="data\src2\exclude.txt"/> |
114 <au:assertFileExists file="${codescanner.output.dir}/problemIndex.xml"/> |
115 <au:assertFileExists file="${codescanner.output.dir}/problemIndex.xml"/> |
115 </target> |
116 </target> |
|
117 |
|
118 <target name="test-codescanner-with-lxr-without-source-dir"> |
|
119 <au:expectfailure expectedMessage="'sourceDir' attribute must be defined"> |
|
120 <hlm:codescanner dest="${codescanner.output.dir}" |
|
121 format="${codescanner.output.type}" |
|
122 configuration="${codescanner.config}" |
|
123 lxrurl="http://codescanner.lxr.server.com/source"> |
|
124 <path refid="src.path.two.path"/> |
|
125 </hlm:codescanner> |
|
126 </au:expectfailure> |
|
127 <au:assertFileExists file="${codescanner.output.dir}" message="codescanner task is not able to create dest folder."/> |
|
128 </target> |
|
129 |
|
130 <target name="test-codescanner-with-lxr-with-source-dir-and-path"> |
|
131 <au:expectfailure expectedMessage="Nested path element are not allowed when lxrURL attribute is in use"> |
|
132 <hlm:codescanner dest="${codescanner.output.dir}" |
|
133 format="${codescanner.output.type}" |
|
134 configuration="${codescanner.config}" |
|
135 lxrurl="http://codescanner.lxr.server.com/source" |
|
136 sourcedir="../data"> |
|
137 <path refid="src.path.two.path"/> |
|
138 </hlm:codescanner> |
|
139 </au:expectfailure> |
|
140 <au:assertFileExists file="${codescanner.output.dir}" message="codescanner task is not able to create dest folder."/> |
|
141 </target> |
|
142 |
|
143 <target name="test-codescanner-with-lxr-without-input-dir" if="do.codescanner.test"> |
|
144 <hlm:codescanner dest="${codescanner.output.dir}" |
|
145 format="${codescanner.output.type}" |
|
146 configuration="${codescanner.config}" |
|
147 lxrurl="http://codescanner.lxr.server.com/source" |
|
148 sourcedir="../data/src"/> |
|
149 <au:assertLogContains text="-x http://codescanner.lxr.server.com/source"/> |
|
150 <au:assertFileExists file="${codescanner.output.dir}" message="codescanner task is not able to create dest folder."/> |
|
151 </target> |
|
152 |
|
153 |
116 </project> |
154 </project> |