The Artima Developer Community
Sponsored Link

Ruby 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: Jan 20, 2007 5:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jared Richardson.
Original Post: CruiseControl and Rails Testing
Feed Title: 6th Sense Analytics
Feed URL: http://www.6thsenseanalytics.com/?feed=rss
Feed Description: The 6th Sense Analytics corporate blog
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jared Richardson
Latest Posts From 6th Sense Analytics

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: Executing YARV in JRuby Previous Topic   Next Topic Topic: Rails 1.2 gems are flying

Sponsored Links



Google
  Web Artima.com   

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