How to auto-generate functional tests based on rake routes

I am trying to handle a rather large Rails project, that has almost no
testing at the moment.

I would like to start by adding functional tests that ensures, that all
actions return the right the “200 OK” return value.

Is there a way to autogenerate functional tests simply by using the
result of “rake routes”? Sp that I can get a skeleton to work from.

  • Carsten

Carsten G. wrote:

I am trying to handle a rather large Rails project, that has almost no
testing at the moment.

I would like to start by adding functional tests that ensures, that all
actions return the right the “200 OK” return value.

Is there a way to autogenerate functional tests simply by using the
result of “rake routes”? Sp that I can get a skeleton to work from.

  • Carsten

Don’t bother. Use Cucumber features. Functional tests should just die.
:slight_smile:

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Marnen Laibow-Koser wrote:

Is there a way to autogenerate functional tests simply by using the
result of “rake routes”? Sp that I can get a skeleton to work from.

Don’t bother. Use Cucumber features. Functional tests should just die.

Hmmm okay… Is there a way of doing ditto in Cucumber? :slight_smile:

  • Carsten

Carsten G. wrote:

Marnen Laibow-Koser wrote:

Is there a way to autogenerate functional tests simply by using the
result of “rake routes”? Sp that I can get a skeleton to work from.

Don’t bother. Use Cucumber features. Functional tests should just die.

Hmmm okay… Is there a way of doing ditto in Cucumber? :slight_smile:

Scenario outlines?

  • Carsten

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]