Testing a Project

Rails provides integration, functional, and unit test schemas. You can run command-line rake tests in the Project Commander, or use the Rails Explorer.

Integration tests can span multiple controllers and be used to test Rails routing.

To run integration tests:

  1. Right-click the Integration Tests node of the Tests folder in the Rails Explorer.
  2. Select Run| Run As| Ruby Script.

Use functional testing to test single controllers and simple user stories.

To run functional tests:

  1. Right-click the Functional Test node of the Tests folder in the Rails Explorer.
  2. Select Run| Run As| Ruby Script.
  3. Where multiple tests are available use the dialog box to select the desired test.

Use unit tests to test business logic.

To run unit tests:

  1. Right-click the Unit Test node of the Tests folder in the Rails Explorer.
  2. Select:
    Run| Run As| Ruby Script.
  3. Where multiple tests are available use the dialog box to select the desired test.
Related Reference Unit Test Rails Function Test Rails Integration Test Rails
Corporate LogoCodeGear brand and product names are service marks, trademarks or registered trademarks of Borland Software Corporation in the United States and other countries.