Список вопросов
Как зайти в Даркнет?!
25th January, 01:11
5
0
Как в tkinter из поля ввода Entry получить значение в одну переменную и обновить строку кнопкой, затем получить ещё одно введённое значение и затем сложить их. Ниже пример кода
21st July, 19:00
893
0
Программа, которая создает фейковые сервера в поиске игровых серверов CS 1.6 Steam
21st March, 17:43
948
0
Очень долго работает Update запрос Oracle
27th January, 09:58
912
0
не могу запустить сервер на tomcat HTTP Status 404 – Not Found
21st January, 18:02
905
0
Где можно найти фрилансера для выполнения поступающих задач, на постоянной основе?
2nd December, 09:48
938
0
Разработка мобильной кроссплатформенной военной игры
16th July, 17:57
1724
0
период по дням
25th October, 10:44
3955
0
Пишу скрипты для BAS только на запросах
16th September, 02:42
3720
0
Некорректный скрипт для закрытия блока
14th April, 18:33
4613
0
прокидывать exception в блоках try-catch JAVA
11th March, 21:11
4380
0
Помогите пожалуйста решить задачи
24th November, 23:53
6084
0
Не понимаю почему не открывается детальное описание продукта
11th November, 11:51
4350
0
Нужно решить задачу по программированию на массивы
27th October, 18:01
4395
0
Метода Крамера С++
23rd October, 11:55
4309
0
помогите решить задачу на C++
22nd October, 17:31
4002
0
Помогите решить задачу на python с codeforces
22nd October, 11:11
4492
0
Python с нуля: полное руководство для начинающих
18th June, 13:58
2599
0
Как прогнать Ant'ом все junit-тесты и одновременно получить правильный код завершения?
Просмотров: 333
 
Ответов: 2
[junit haltonfailure = false] — в коце Ant пишет типа «BUILD SUCCESSFUL» — врёт, по сути.
[junit haltonfailure = true] — уже не пишет что «успешно», но процесс останавливается на первом упавшем тесте.
Как и правильный статус получить, и все тесты прогнать?
// Ant 1.8
<target name="run-test" depends="init-test, compile-test" unless="option.skiptest">
<mkdir dir="${test.xml}" />
<junit
haltonfailure="off"
haltonerror="off"
errorproperty="test.failed"
failureproperty="test.failed"
showoutput="no"
printsummary="yes"
includeantruntime="yes"
dir="${test.build}"
fork="true">
<classpath>
<path refid="test.classpath" />
</classpath>
<formatter type="xml"/>
<batchtest todir="${test.xml}">
<fileset refid="test.fileset" />
</batchtest>
</junit>
</target>
<target name="test" depends="run-test" unless="option.skiptest" description="Run unit tests">
<fail if="test.failed"
message="At least one test has failed. See logs (in ${test.xml}) for details (use the target test-report to run the test with a report)" />
</target>
<target name="test-report" depends="run-test" unless="option.skiptest" description="Run the test with report">
<junitreport todir="${test.xml}">
<fileset dir="${test.xml}">
<include name="TEST-*.xml"/>
</fileset>
<report format="noframes" todir="${reports}">
</report>
</junitreport>
<fail if="test.failed"
message="At least one test has failed. See logs (in ${test.xml}) or report (in ${reports})" />
</target>
<target name="run-test" depends="init-test, compile-test" unless="option.skiptest">
<mkdir dir="${test.xml}" />
<junit
haltonfailure="off"
haltonerror="off"
errorproperty="test.failed"
failureproperty="test.failed"
showoutput="no"
printsummary="yes"
includeantruntime="yes"
dir="${test.build}"
fork="true">
<classpath>
<path refid="test.classpath" />
</classpath>
<formatter type="xml"/>
<batchtest todir="${test.xml}">
<fileset refid="test.fileset" />
</batchtest>
</junit>
</target>
<target name="test" depends="run-test" unless="option.skiptest" description="Run unit tests">
<fail if="test.failed"
message="At least one test has failed. See logs (in ${test.xml}) for details (use the target test-report to run the test with a report)" />
</target>
<target name="test-report" depends="run-test" unless="option.skiptest" description="Run the test with report">
<junitreport todir="${test.xml}">
<fileset dir="${test.xml}">
<include name="TEST-*.xml"/>
</fileset>
<report format="noframes" todir="${reports}">
</report>
</junitreport>
<fail if="test.failed"
message="At least one test has failed. See logs (in ${test.xml}) or report (in ${reports})" />
</target>
Чтобы ответить на вопрос вам нужно войти в систему или зарегистрироваться