Forum: RSpec [Cucumber] features.txt

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3464536ce6396bacc132ad18d2c46489?d=identicon&s=25 Tim Walker (timw)
on 2009-04-14 19:39
(Received via mailing list)
Hi Guys,

My nightly tests stopped working suddenly over the weekend. Not sure
why yet. It's wierd because they just look like the exited without a
clue mid-test. Nothing in the logs is a smoking gun.

Here's my question: It seems like the contents of features.txt do not
get written until the tests are done. In my current case this file is
0 length at the end of the run. Any way to affect this behavior and
force the output to be written as the tests run.

Many thanks guys.

Sincerely,

Tim
0be0e4aa42aacd9a8a95c792de273ca7?d=identicon&s=25 Aslak Hellesøy (aslakhellesoy)
on 2009-04-14 20:28
(Received via mailing list)
On Tue, Apr 14, 2009 at 7:19 PM, Tim Walker <walketim@gmail.com> wrote:

> Hi Guys,
>
> My nightly tests stopped working suddenly over the weekend. Not sure
> why yet. It's wierd because they just look like the exited without a
> clue mid-test. Nothing in the logs is a smoking gun.
>
> Here's my question: It seems like the contents of features.txt do not


What's features.txt?
3464536ce6396bacc132ad18d2c46489?d=identicon&s=25 Tim Walker (timw)
on 2009-04-14 22:21
(Received via mailing list)
Sorry. This is running from cruisecontrol rb:

---
  Cucumber::Rake::Task.new(:cruise) do |t|
    t.cucumber_opts = "-r features/cucumber_env --format pretty
--out=#{ENV['CC_BUILD_ARTIFACTS']}/features.txt --format html
--out=#{ENV['CC_BUILD_ARTIFACTS']}/features.html"
    t.rcov = true
    t.rcov_opts = ["#{RCOV_COMMON_OPTS} -o
#{ENV['CC_BUILD_ARTIFACTS']}/features_rcov"]
    t.feature_pattern = ["features/control*/*.feature"]
  end
---

Thanks,

Tim

On Tue, Apr 14, 2009 at 12:26 PM, aslak hellesoy
C694a032be7518a0d704318895f8fe1d?d=identicon&s=25 Ben Mabey (mabes)
on 2009-04-15 03:49
(Received via mailing list)
On Apr 14, 2009, at 1:41 PM, Tim Walker wrote:

>    t.feature_pattern = ["features/control*/*.feature"]
>  end
> ---
>
> Thanks,
>
> Tim

What happens when you run the features from the command line on the
build server?  What output do you get then?

-Ben
This topic is locked and can not be replied to.