The Artima Developer Community
Sponsored Link

Agile Buzz Forum
CruiseControl and Rails Testing

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jared Richardson

Posts: 1031
Nickname: jaredr
Registered: Jun, 2005

Jared Richardson is an author, speaker, and consultant who enjoys working with Ruby and Rails.
CruiseControl and Rails Testing Posted: Nov 27, 2006 7:22 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Jared Richardson.
Original Post: CruiseControl and Rails Testing
Feed Title: Jared's Weblog
Feed URL: http://www.jaredrichardson.net/blog/index.rss
Feed Description: Jared's weblog. The web site was created after the launch of the book "Ship It!" and discusses issues from Continuous Integration to web hosting providers.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Jared Richardson
Latest Posts From Jared's Weblog

Advertisement

I posted on this topic (and here as well) a few weeks ago but received several emails asking for more specifics, so here you go.

An Ant script to run Rake tasks, and detect failures.

  <target name="rails-build" >
    <echo message="Running rails tests via rake ci task..."/>
    <exec
          executable="rake"
          output="/path_to_cc/cruisecontrol-bin-2.5/logs/my_project_name/rake-output.log"
                                        outputproperty="rake.output">
    </exec>

    <!-- check for error string 'rake aborted', and fail build if it is found -->
    <fail message="Rake failed, because 'rake aborted' string was found in build output">
      <condition>
        <contains string="${rake.output}"
                                substring="rake aborted"
                                casesensitive="false"/>
      </condition>
    </fail>

    <echo message="Rails tests via rake ci task completed successfully (no string 'rake aborted' found)"/>
  </target>

I was also asked for a specific example of how to integrate Test-Report with Ant and CruiseControl. I don't have a working configuration in front of me at the moment and, due to time constraints, can't reproduce one right now. For now, check out to docs on their Test Report page.

I've got a short trip to California this week, but I'll integrate with a project I'm working on now, then post the steps by the end of this week or the first of next.

Jared

Read: CruiseControl and Rails Testing

Topic: Debugging SOAP Previous Topic   Next Topic Topic: You say Tomato...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use