Building my first ant build.xml file to have Jenkins run Codeception tests and I'm receiving an error "--" is not permitted within comments
I know from reading elsewhere on stackoverflow that xml doesn't allow this. Cure for 'The string "--" is not permitted within comments.' exception?
The conundrum is that several Codeception commands start with --: --xml, --html, --env, etc.
<target name="View" description="test for single aaView page">
<exec executable="${codecept}" failonerror="true">
<arg value="run" />
<arg value="tests/acceptance/aaViewCept.php" />
<arg value="--xml" />
<arg value="${basedir}/browser/${browser}/tests/_output/report.xml "/>
<arg value="--env" />
<arg value="${browser}" />
</exec>
</target>
The kicker is that if I remove failonerror="true"
Jenkins runs the test just fine. I'm experimenting with putting it in as Jenkins shows a passing build with failing test if I don't.