0

I have a Cucumber test (feature files) in the RubyMine IDE and lately I have a need to execute one of the feature repeatedly on a scheduled time.

I haven't found a way to do so. Any idea or thoughts on scheduling that feature file?

the Tin Man
  • 150,910
  • 39
  • 198
  • 279
Chuchoo
  • 693
  • 2
  • 12
  • 28

2 Answers2

2

You can create a cron job which will execute a rake.

The software utility Cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals.

These links might help

How to create a cron job using Bash

how to create a cron job to run a ruby script?

http://rake.rubyforge.org/

Community
  • 1
  • 1
mrtyormaa
  • 592
  • 5
  • 14
  • Thanks mrtyormaa. It would be more helpful to know if somebody has scheduled their cucumber feature file to run on a daily basis. I am not quite sure how to put .feature file in the cron job. – Chuchoo Jul 08 '15 at 18:40
0

I solved the problem by simply installing Jenkins on my machine from its official site,https://jenkins-ci.org/. I configured master and slave nodes on my own machine because I just needed to run one feature file(it has the script I want to run on daily basis).

Although, it is recommended to configure slave on a different machine if we have multiple jobs to run and our jobs are resource intensive.

There is a very good illustration on installing, configuring and running jobs in this link http://yakiloo.com/setup-jenkins-and-windows/

Chuchoo
  • 693
  • 2
  • 12
  • 28