James Byrne wrote:
> Joseph Wilk wrote:
>>
>> I don't think this is the case. Every Before/After that is in a required
>> file is run before a scenario. So in theory you could create one Before
>> (in for example env.rb) which would get called for all scenarios.
>>
>
> I experimented with the
Joseph Wilk wrote:
>
> I don't think this is the case. Every Before/After that is in a required
> file is run before a scenario. So in theory you could create one Before
> (in for example env.rb) which would get called for all scenarios.
>
I experimented with the following code in env.rb, borr
>I gather that before / after block only work within
>step files? If so then that requires each step file be modified to turn
>custom logging on or off, which is something I would much rather avoid.
I don't think this is the case. Every Before/After that is in a required
file is run before a sc
James Byrne wrote:
> logger.info("Running Scenario: #{scenario}"
> ...
> logger.info(" Running Step: #{step}"
> ...
should be:
logger.info("Running Scenario: #{scenario}")
and
logger.info("Running Step: #{step}")
--
Posted via http://www.ruby-forum.com/.
___
aslak hellesoy wrote:
> On Mon, Nov 24, 2008 at 9:00 PM, James Byrne <[EMAIL PROTECTED]>
> wrote:
>
>> > or other?
>>
>> Rails 2.2.2
>>
>
> It depends what you want to log and when. Have you tried to put it in a
> Before or After block?
>
> I'm not sure exactly what you're trying to achieve.
>
On Mon, Nov 24, 2008 at 9:00 PM, James Byrne <[EMAIL PROTECTED]> wrote:
> aslak hellesoy wrote:
> > On Mon, Nov 24, 2008 at 8:40 PM, James Byrne <[EMAIL PROTECTED]>
> > wrote:
> >
> >> Where and how do you put custom logger statements in cucumber? I
> >> understood (more or less) how to do this i
aslak hellesoy wrote:
> On Mon, Nov 24, 2008 at 8:40 PM, James Byrne <[EMAIL PROTECTED]>
> wrote:
>
>> Where and how do you put custom logger statements in cucumber? I
>> understood (more or less) how to do this in rspec in the spec_helper
>> file but I do not know where to start with cucumber.
On Mon, Nov 24, 2008 at 8:40 PM, James Byrne <[EMAIL PROTECTED]> wrote:
> Where and how do you put custom logger statements in cucumber? I
> understood (more or less) how to do this in rspec in the spec_helper
> file but I do not know where to start with cucumber.
>
Are you using any particular
Where and how do you put custom logger statements in cucumber? I
understood (more or less) how to do this in rspec in the spec_helper
file but I do not know where to start with cucumber.
I want to add a simple identifying text line in the log file to assist
in picking through the output. Somethi