Turn off nested step deprecation warnings

87 views
Skip to first unread message

byrnejb

unread,
Mar 18, 2013, 12:30:07 PM3/18/13
to cu...@googlegroups.com
Is there a switch, flag or configuration setting that can turn cucumber's " WARNING: Using 'Given/When/Then' in step definitions is deprecated " message off?  I am working on an old feature set and this is generating an immense amount of noise.  I cannot see anything in the help output that deals with it either.  Something relevant might be there but I cannot see it.

Steve Tooke

unread,
Mar 18, 2013, 1:14:24 PM3/18/13
to cu...@googlegroups.com
On Monday, 18 March 2013 at 16:30, byrnejb wrote:
Is there a switch, flag or configuration setting that can turn cucumber's " WARNING: Using 'Given/When/Then' in step definitions is deprecated " message off?  I am working on an old feature set and this is generating an immense amount of noise.  I cannot see anything in the help output that deals with it either.  Something relevant might be there but I cannot see it.
No there is no flag to turn it off.

It is written to STDERR though, so you could redirect that output to /dev/null or a file, so you could see the output that interests you. e.g.

`cucumber 2>/dev/null`

You should probably fix all the places that are reported, as the deprecated Given/When/Then nested step declarations will be removed at some point - I would guess for 2.0.

Steve
 
--
/tooky 

James B. Byrne

unread,
Mar 18, 2013, 3:07:19 PM3/18/13
to cu...@googlegroups.com
Yes, I know that I should remove deprecated elements. However, at the
moment I am rather pressed for time and tidy work must perforce wait.
Rerouting STDERR would of course hide completely the very thing that
the deprecation notices are obscuring, which is an actual error.

If it cannot be turned off then so be it. I will cope. Grumble,
gnash, sputter. mutter. . .


--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:Byr...@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3

Steve Tooke

unread,
Mar 18, 2013, 5:24:47 PM3/18/13
to cu...@googlegroups.com
On Monday, 18 March 2013 at 19:07, James B. Byrne wrote: 
Rerouting STDERR would of course hide completely the very thing that
the deprecation notices are obscuring, which is an actual error.
Is it an error reported by a failing cuc? Failed steps should still be reported.

If you redirect STDERR to a file, you could use your editor/grep to remove the deprecation warnings. Might get you over the hump at least, and let you spot the error. :)

Steve
 
-- 
/tooky

Reply all
Reply to author
Forward
0 new messages