IntelliJ IDEA 2018.2 Help

Testing Frameworks

IntelliJ IDEA enables usage of the following testing frameworks:

  • Test::Unit is intended for unit testing and comes bundled with Ruby.

  • Shoulda is intended for unit testing, and becomes available in Ruby projects on attaching the shoulda gem. So doing, the Shoulda tests are added on to the Test::Unit framework.

  • RSpec. This testing tool supports BDD. RSpec becomes available in Ruby projects on attaching the rspec gem. For the Rails applications, rspec-rails gem is also required.

  • MiniTest becomes available on attaching the minitest-reporters gem. The minitests are added to the Test::Unit framework.

  • Cucumber. This testing tool supports BDD, and enables using features and scenarios written in a human-readable language, either English or any other language specified in the # language: comment. Cucumber becomes available in project upon installing and activating the cucumber gem.

Before you start working with the testing framework of your choice, make sure that the desired framework is installed on your machine. Refer to the framework documentation for the installation details.

For each of the supported testing frameworksDepending on a particular supported testing framework, IntelliJ IDEA provides:

Refer to the section Performing Tests for the detailed description of the common testing procedures.

For framework-specific usage guidelines, refer to:

Last modified: 20 November 2018

See Also