Running cucumber using the Command line runner

I would simply like to run the following:
cucumber features

which works fine when I run it from the command prompt.

However, when I try to do the same in TeamCity as a custom script, I get the error message that cucumber is not a recognised internal or external command.

What am I doing wrong?

4 comments
Comment actions Permalink

Hi David

"Path" environment variable may be different if build agent is started by another account. Or build agent service is not yet restarted after changes of environment variables.

0
Comment actions Permalink

Command line runner allows to execute any tools, but there is dedicated Rake runner for Ruby-based builds. It's required to obtain test results from the builds.

0
Comment actions Permalink

+1

Any solution for this problem? 

0
Comment actions Permalink

Hi Sabhapathi,

 

the solution was already given by Michael. You need to make sure that cucumber is in the PATH env. variable of the user running the agent, or provide the full path to it when running your script. Alternatively, use the Rake runner for ruby builds.

0

Please sign in to leave a comment.