テストケースを実行するコマンドは、buildspec ファイルの commands
セクションで指定します。これらのコマンドは、buildspec ファイルの reports
セクションでレポートグループに指定されたテストケースを実行します。次に、テストファイルでテストを実行するコマンドを含むサンプル commands
セクションを示します。
commands:
- echo Running tests for surefire junit
- mvn test -f surefire/pom.xml -fn
- echo
- echo Running tests for cucumber with json plugin
- mvn test -Dcucumber.options="--plugin json:target/cucumber-json-report.json" -f cucumber-json/pom.xml -fn
詳細については、「buildspec の構文」を参照してください。