IntelliJ IDEA enables usage of the following testing frameworks:
This feature is supported in Ultimate edition only.
The following is only valid when PHP Plugin is installed and enabled!
The following is only valid when Python Plugin is installed and enabled!
This feature is supported in Ultimate edition only.
- BDD frameworks:
Refer to the section BDD Testing Framework for details.
This feature is supported in Ultimate edition only.
The following is only valid when Ruby Plugin is installed and enabled!
- 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 shouldagem. 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
rspecgem. For the Rails applications,rspec-railsgem 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 thecucumbergem.
Testing frameworks support
For each of the supported testing frameworks, IntelliJ IDEA provides:
- Code completion, aware of the specific testing framework.
- Run/debug configurations.
- Ability to create tests.
- Ability to navigate between tests and test subjects.
- Ability to run tests from within the IDE, and view test results in the test runner UI . The test results are shown on the Test Runner tab of the Run tool window.
- Ability to run all tests or features in a directory, specific test classes, test cases or features, individual test methods or examples.
- Code inspections.
Refer to the section Testing for the detailed description of the common testing procedures.
For framework-specific usage guidelines, refer to: