Revision 22146,
1.2 KB
checked in by shift_hiroko.tamagawa, 11 years ago
(diff) |
#1978 テスト時の標準出力と標準エラー出力が出せるように調整
|
Line | |
---|
1 | <?xml version="1.0" encoding="utf-8" ?> |
---|
2 | <project name="EC-CUBE" basedir="." default="test"> |
---|
3 | <!-- Jenkins上でのみ実行するタスク --> |
---|
4 | <target name="prepare-jenkins"> |
---|
5 | <copy overwrite="true" file="data/config/config.php.jenkins" tofile="data/config/config.php"/> |
---|
6 | <copy overwrite="true" file="tests/phpunit.xml.jenkins" tofile="tests/phpunit.xml"/> |
---|
7 | </target> |
---|
8 | |
---|
9 | <target name="test"> |
---|
10 | <delete> |
---|
11 | <fileset dir="data/cache"> |
---|
12 | <include name="*"/> |
---|
13 | </fileset> |
---|
14 | </delete> |
---|
15 | <delete dir="reports" includeemptydirs="true" /> |
---|
16 | <mkdir dir="reports/coverage" /> |
---|
17 | <exec dir="." |
---|
18 | output="reports/stdout.log" |
---|
19 | error="reports/stderr.log" |
---|
20 | command="phpunit --log-tap reports/tap.log |
---|
21 | --log-junit reports/unitreport.xml |
---|
22 | --coverage-html reports/coverage |
---|
23 | --coverage-clover reports/coverage/coverage.xml |
---|
24 | --configuration tests/phpunit.xml |
---|
25 | tests/" /> |
---|
26 | </target> |
---|
27 | <target name="checkstyle"> |
---|
28 | <exec command="phpcs --standard=tests/ruleset.xml |
---|
29 | --report=checkstyle |
---|
30 | --extensions=php |
---|
31 | -pv data/ |
---|
32 | --report-file=reports/checkstyle.xml |
---|
33 | --ignore=data/module,data/Smarty,data/smarty_extends" /> |
---|
34 | </target> |
---|
35 | </project> |
---|
Note: See
TracBrowser
for help on using the repository browser.