Jonathan Marston
2007-Aug-20 16:05 UTC
[Cruisecontrolrb-users] Integrating Flash AsUnit with cruisecontrol.rb
Hello,
I am a Flash Developer on a Ruby on Rails project which is using
cruiscontrol.rb. I have built a test harness using AsUnit (http://
asunit.org) which produces a results.xml file which is in the junit
results format. Here is sample output.
<?xml version=''1.0'' encoding=''UTF-8''?>
<testsuites>
<testsuite name="Flash Profile Card AsUnit Test Suite"
errors="1"
failures="1" tests="8" time="8.002">
<testcase classname="lib.test.cases.FailureTest"
name="testError">
<failure type="Error">Reference runtime test
error</failure>
</testcase>
<testcase classname="lib.test.cases.FailureTest"
name="testAssertion">
<failure type="AssertionFailedError">Reference assertion
test
failure</failure>
</testcase>
</testsuite>
</testsuites>
I would like to integrate my AsUnit results with the rest of the
project. What is the best way to do that? Should I just a script put
my results.xml file in the CC_BUILD_ARTIFACTS directory?
It looks like CruiseControl 2.7 has a merge property which can be
used to merge any junit results into the main build results file
http://cruisecontrol.sourceforge.net/main/configxml.html#merge
Does cruisecontrol.rb have similar functionality?
Jonathan Marston
Marston Development Studio LLC
email: jon at marstonstudio.com
phone: (978) 758-7444
im: marstonstudio (gtalk/yahoo/aol)
blog: marstonstudio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070820/ead13a2a/attachment-0001.html
Rolf Russell
2007-Aug-20 18:41 UTC
[Cruisecontrolrb-users] Integrating Flash AsUnit with cruisecontrol.rb
Hi Jonathan,
Yup, you should just move your test results to the CC_BUILD_ARTIFACTS
directory. Since xml is difficult to read I would recommend using any
commandline output of asunit instead of the xml output.
--Rolf
Jonathan Marston <marstonstudio at gmail.com>
Sent by: cruisecontrolrb-users-bounces at rubyforge.org
08/20/2007 11:05 AM
To
cruisecontrolrb-users at rubyforge.org
cc
Subject
[Cruisecontrolrb-users] Integrating Flash AsUnit with cruisecontrol.rb
Hello,
I am a Flash Developer on a Ruby on Rails project which is using
cruiscontrol.rb. I have built a test harness using AsUnit (
http://asunit.org) which produces a results.xml file which is in the junit
results format. Here is sample output.d
<?xml version=''1.0'' encoding=''UTF-8''?>
<testsuites>
<testsuite name="Flash Profile Card AsUnit Test Suite"
errors="1"
failures="1" tests="8" time="8.002">
<testcase classname="lib.test.cases.FailureTest"
name="testError">
<failure type="Error">Reference runtime test
error</failure>
</testcase>
<testcase classname="lib.test.cases.FailureTest"
name="testAssertion">
<failure type="AssertionFailedError">Reference assertion
test
failure</failure>
</testcase>
</testsuite>
</testsuites>
I would like to integrate my AsUnit results with the rest of the project.
What is the best way to do that? Should I just a script put my results.xml
file in the CC_BUILD_ARTIFACTS directory?
It looks like CruiseControl 2.7 has a merge property which can be used to
merge any junit results into the main build results file
http://cruisecontrol.sourceforge.net/main/configxml.html#merge
Does cruisecontrol.rb have similar functionality?
Jonathan Marston
Marston Development Studio LLC
email: jon at marstonstudio.com
phone: (978) 758-7444
im: marstonstudio (gtalk/yahoo/aol)
blog: marstonstudio.com
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070820/ebc6980e/attachment.html
Alexey Verkhovsky
2007-Aug-20 20:06 UTC
[Cruisecontrolrb-users] Integrating Flash AsUnit with cruisecontrol.rb
On 8/20/07, Jonathan Marston <marstonstudio at gmail.com> wrote:> I would like to integrate my AsUnit results with the rest of the project.Unlike CruiseControl the Original, CC.rb doesn''t perform any transformation of build artifacts. If you put an XML file into CC_BUILD_ARTIFACTS, XML file is what you see in the browser. If your testing library can be told to produce HTML, that''s an easy way to go. Otherwise, you''ll need to transform that XML file to HTML in the build, and then place the result in CC_BUILD_ARTIFACTS.. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com]
Jonathan Marston
2007-Aug-21 13:30 UTC
[Cruisecontrolrb-users] Integrating Flash AsUnit with cruisecontrol.rb
The big question is whether or not crusiecontrol.rb has functionality equivalent to the merge module *http://cruisecontrol.sourceforge.net/main/configxml.html#merge*<http://cruisecontrol.sourceforge.net/main/configxml.html#merge> I want to fully integrate my tests into the results, not just link to a report jon marston On 8/20/07, Rolf Russell <RRussell at thoughtworks.com> wrote:> > > Hi Jonathan, > > Yup, you should just move your test results to the CC_BUILD_ARTIFACTS > directory. Since xml is difficult to read I would recommend using any > commandline output of asunit instead of the xml output. > > --Rolf > > > > > > *Jonathan Marston <marstonstudio at gmail.com>* > Sent by: cruisecontrolrb-users-bounces at rubyforge.org > > 08/20/2007 11:05 AM > To > cruisecontrolrb-users at rubyforge.org cc > > Subject > [Cruisecontrolrb-users] Integrating Flash AsUnit with > cruisecontrol.rb > > > > > > > Hello, > > I am a Flash Developer on a Ruby on Rails project which is using > cruiscontrol.rb. I have built a test harness using AsUnit (* > http://asunit.org* <http://asunit.org/>) which produces a results.xml file > which is in the junit results format. Here is sample output.d > > <?xml version=''1.0'' encoding=''UTF-8''?> > <testsuites> > <testsuite name="Flash Profile Card AsUnit Test Suite" errors="1" > failures="1" tests="8" time="8.002"> > <testcase classname="lib.test.cases.FailureTest" name="testError"> > <failure type="Error">Reference runtime test error</failure> > </testcase> > <testcase classname="lib.test.cases.FailureTest" name="testAssertion"> > <failure type="AssertionFailedError">Reference assertion test > failure</failure> > </testcase> > </testsuite> > </testsuites> > > I would like to integrate my AsUnit results with the rest of the project. > What is the best way to do that? Should I just a script put my results.xmlfile in the CC_BUILD_ARTIFACTS directory? > > It looks like CruiseControl 2.7 has a merge property which can be used to > merge any junit results into the main build results file > *http://cruisecontrol.sourceforge.net/main/configxml.html#merge*<http://cruisecontrol.sourceforge.net/main/configxml.html#merge> > Does cruisecontrol.rb have similar functionality? > > Jonathan Marston > > *Marston Development Studio LLC* > *email*: *jon at marstonstudio.com* <jon at marstonstudio.com> > *phone*: (978) 758-7444 > *im*: marstonstudio (gtalk/yahoo/aol) > *blog*: marstonstudio.com > > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070821/3b768c38/attachment.html