no
it's in nature that if a task fails, the projects fails
--> all following tasks are skipped and the publishers are ran
it's best to delegate this to a build script Nant, msbuild, ...
I do this with nant like so :
° each project has a text file containing the 'test projects' (a bnit old
fashioned but it works)
° I run each test project, but with failonerror="false", and store the
result in a variable
° check the variable at the end
<foreach item="Line" in="${fileContainingProjectsWithTests}"
property="filename" >
<if test="${string::get-length(filename)>0}" >
<property name="testexe"
value="${path::combine(RuWi::GetOutputPath(filename,configuration),RuWi::GetElementFromProjectFile(filename,'AssemblyName'))}.exe"
/>
<echo message="Running tests of ${testexe}" />
<property name="ExcludeCategories"
value="Interactive,Heavy" />
<property name="ExcludeCategories" value="Interactive"
unless="${isCI}"/>
<exec program="${nunit_exe}" failonerror="false"
resultproperty="testresult.temp">
<arg value="${testexe}" />
<arg
value="/xml=UnitTests_${path::get-file-name-without-extension(filename)}.xml"
/>
<arg value="/exclude=${ExcludeCategories}" />
</exec>
<property name="testsok" value="false"
unless="${int::parse(testresult.temp)==0}"/>
</if>
</foreach>
<fail message="Failures reported in unit tests."
unless="${testsok}" />
with kind regards
Ruben Willems
On 1 June 2013 13:14, Alex Vilela <[email protected]> wrote:
> I have a SmokeTests project where I execute a bunch of JMeter and Selenium
> tests.
> However when the some of the JMeter tests fail the Selenium tests don't
> execute.
> I would like to have both JMeter and Selenium executing, always.
>
> My configuration is something like this:
> <tasks>
> <msbuild for JMeter tests />
> <msbuild for Selenium tests />
> </tasks>
> <publishers>
> <merge>
> <files>
> <file>path to file with JMeter test results.xml</file>
> <file>path to file with Selenium test results.xml</file>
> </files>
> </merge>
> </publishers>
>
> Is there a way to achieve that?
>
> Alex Vilela
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ccnet-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.