|
Since properties are immutable, this is a
little more fun. <target name="codecov"
depends="codecov-start" failonerror=”true”> <property
name=”codecov” value=”true”/> <call
target=”test”/> <call
target=”codecov-stop”/> </target> <target
name="test" depends="locate-nunit" failonerror=”true”> <!—do
some stuff that may fail à <target/> What I need to do with the above snippet
is change test’s failonerror to TRUE when not doing code coverage, but to
FALSE when doing codecoverage, then pass the fail back to codecov to propogate
out. Basically like catching and rethrowing an exception. If “codecov-stop” is not
called, then code coverage collection remains on for the machine.
I’m trying to avoid just cutting
<test> and pasting it to <codecov-test> with failonerror=”false”.
That would be a partial workaround at best anyways (build still needs to fail
in the end to satisfy the failed condition). Thanks!, Eric |
- [Nant-users] Changing failonerror on the fly Eric Deslauriers
- Re: [Nant-users] Changing failonerror on the fly Troy Laurin
- Re: [Nant-users] Changing failonerror on the fly Troy Laurin
- Re: [Nant-users] Changing failonerror on the... Gert Driesen
