Skip Menu |

This queue is for tickets about the Test-Pcuke CPAN distribution.

Report information
The Basics
Id: 75460
Status: open
Priority: 0/
Queue: Test-Pcuke

People
Owner: Nobody in particular
Requestors: ross.attrill [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.000004
Fixed in: (no value)



Subject: Pcuke is looking for step definitions in the wrong location
Test::Pcuke.pm is looking for step definitions in the .features folder which is inconsistent with Test::Pcuke::Manual I suggest the following change. sub load_step_definitions { - my ($self) = @_; - my $dir ||= 'features'; + my ($self, $dir) = @_; + $dir ||= 'step_definitions'; my @step_definitions = ();
Dear uvb, Thank you for feedback! Show quoted text
> Test::Pcuke.pm is looking for step definitions in the .features folder > which is inconsistent with Test::Pcuke::Manual
In this case the manual should be fixed. It is the "best practice" to put the step definitions under './features/step_definitions' and all auxilliary code under './features/support'. The cucumber (the prototype for pcuke) loads every code it finds recursively under './features', so the pcuke must do.
Subject: Re: [rt.cpan.org #75460] Pcuke is looking for step definitions in the wrong location
Date: Thu, 15 Mar 2012 15:50:00 +1100
To: bug-Test-Pcuke [...] rt.cpan.org
From: Ross Attrill <ross.attrill [...] gmail.com>
Thank you Andrei - very much appreciated. On Sat, Mar 10, 2012 at 11:23 PM, Andrei V. Toutoukine via RT < bug-Test-Pcuke@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=75460 > > > Dear uvb, > > Thank you for feedback! >
> > Test::Pcuke.pm is looking for step definitions in the .features folder > > which is inconsistent with Test::Pcuke::Manual
> > In this case the manual should be fixed. It is the "best practice" to put > the step definitions under './features/step_definitions' and all > auxilliary code under './features/support'. The cucumber (the prototype > for pcuke) loads every code it finds recursively under './features', so > the pcuke must do. >