Test | RubyMine - JetBrains
Có thể bạn quan tâm
RubyMine provides integration with the most popular frameworks used for testing Ruby/Rails applications. You can run multiple or individual tests, navigate between a test and test subject, create missing tests, and so on.
Supported testing frameworks and tools
The following testing frameworks and tools are supported:
Minitest
Minitest is a testing framework that supports TDD and BDD approaches, mocking, and benchmarking. Before running Minitest tests in RubyMine, make sure that the 'minitest' gem is added to the Gemfile and installed to the project's interpreter. RubyMine requires the Minitest gem v5.0 or later. You can use the older versions and launch tests from the console, but RubyMine’s GUI actions will be unavailable.
The minitest-reporters gem is no longer in use. If you use Minitest, make sure to update your Minitest configuration file (/test/test_helper.rb): replace MiniTest::Reporters.use! with Minitest::Reporters.use! unless ENV['RM_INFO'].
RSpec
RSpec is a popular BDD framework for testing Ruby/Rails applications. Depending on your project type (Ruby or Rails), use the rspec or rspec-rails gem.
Cucumber
Cucumber is a BDD testing tool that uses the Gherkin language for writing test scenarios. For more information about Cucumber features supported in RubyMine, refer to Cucumber.
Test::Unit
Test::Unit is a legacy TDD framework for testing Ruby/Rails code.
Apart from the frameworks listed above, RubyMine supports the following testing libraries:
Shoulda
Apart from standard Minitest and RSpec tests, RubyMine allows you to run tests that use Shoulda.
FactoryBot
FactoryBot is a library for setting up Ruby objects as test data that replaces fixtures. RubyMine allows you to safely rename or delete factories, complete factory attributes, and methods (for example, create and build), navigate from models to factories and vice-versa, and so on.
SimpleCov
SimpleCov is an analysis tool used by RubyMine to measure code coverage. Learn how to do this from the Code coverage topic.
Capybara
Capybara is a web-based test automation tool that simulates scenarios for user stories and automates web application testing for behavior-driven software development.
Từ khóa » Thu Ruby
-
Thu-ruby Trang Cá Nhân | Facebook
-
Thu RuBy Nữ Hoàng Trị Mụn Nám Tàn Nhang - Home | Facebook
-
Thư Viện - Ruby
-
Bán Nhà Biệt Thự, Liền Kề Tại Mega Ruby Giá Ưu Đãi
-
596 Thu-sgn Guava Ruby /Ổi Ruby/グアバ500g - Thien Sinh Farm
-
Mikel/mail: A Really Ruby Mail Library - GitHub
-
Nguyen Thu Ha - Ho Chi Minh City, Vietnam | Professional Profile
-
BIỆT THỰ RUBY CHILLIN' VILLA VŨNG TÀU - RL16
-
RUBY
-
Ruby Xuân Thư - Spotify – Web Player
-
Dial Test Indicator, Horiz., Ruby Sty. - Mitutoyo, Product
-
Váy Ruby Mùa Thu 62 - Real Clothes
-
How To Avoid Sending Emails In Rails Test-env With Sendgrid-ruby?