본문 바로가기

Ruby On Rails/RSpec

rspec reference 정리

1. better specs, rspec-expectations, rspec-mocks, rspec-core, rspec-rails

www.betterspecs.org/

 

Better Specs. Testing Guidelines for Developers.

Better Specs is a collection of best practices developers learned while testing apps that you can use to improve your coding skills, or simply for inspiration. Better Specs came to life at Lelylan (open source IoT cloud platform) and checking out its test

www.betterspecs.org

github.com/rspec/rspec-expectations

 

rspec/rspec-expectations

Provides a readable API to express expected outcomes of a code example - rspec/rspec-expectations

github.com

github.com/rspec/rspec-mocks

 

rspec/rspec-mocks

RSpec's 'test double' framework, with support for stubbing and mocking - rspec/rspec-mocks

github.com

github.com/rspec/rspec-core

 

rspec/rspec-core

RSpec runner and formatters. Contribute to rspec/rspec-core development by creating an account on GitHub.

github.com

github.com/rspec/rspec-rails

 

rspec/rspec-rails

RSpec for Rails 5+. Contribute to rspec/rspec-rails development by creating an account on GitHub.

github.com

2. spring, guard

github.com/rails/spring

 

rails/spring

Rails application preloader. Contribute to rails/spring development by creating an account on GitHub.

github.com

github.com/jonleighton/spring-commands-rspec

 

jonleighton/spring-commands-rspec

Contribute to jonleighton/spring-commands-rspec development by creating an account on GitHub.

github.com

github.com/guard/guard-rspec

 

guard/guard-rspec

Guard::RSpec automatically run your specs (much like autotest) - guard/guard-rspec

github.com

github.com/guard/guard#readme

 

guard/guard

Guard is a command line tool to easily handle events on file system modifications. - guard/guard

github.com

3. factory_bot, faker

github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md

 

thoughtbot/factory_bot

A library for setting up Ruby objects as test data. - thoughtbot/factory_bot

github.com

github.com/faker-ruby/faker

 

faker-ruby/faker

A library for generating fake data such as names, addresses, and phone numbers. - faker-ruby/faker

github.com

4. model spec - shoulda-matchers

github.com/thoughtbot/shoulda-matchers

 

thoughtbot/shoulda-matchers

Simple one-liner tests for common Rails functionality - thoughtbot/shoulda-matchers

github.com

5. feature spec - capybara

rubydoc.info/github/teamcapybara/capybara/master

 

File: README — Documentation for teamcapybara/capybara (master)

Capybara Capybara helps you test web applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in. WebKit is supported through an externa

rubydoc.info

github.com/teamcapybara/capybara/blob/3.34_stable/README.md

 

teamcapybara/capybara

Acceptance test framework for web applications. Contribute to teamcapybara/capybara development by creating an account on GitHub.

github.com

6. explanations

rubydoc.info/gems/rspec-rails/frames#feature-specs

 

File: README — Documentation for rspec-rails (5.0.1)

rspec-rails rspec-rails brings the RSpec testing framework to Ruby on Rails as a drop-in alternative to its default testing framework, Minitest. In RSpec, tests are not just scripts that verify your application code. They’re also specifications (or specs

rubydoc.info

relishapp.com/rspec/rspec-rails/v/4-0/docs

 

RSpec Rails 4.0 - RSpec Rails - RSpec - Relish

RSpec Rails 4.0 rspec-rails extends Rails' built-in testing framework to support rspec examples for requests, controllers, models, views, helpers, mailers and routing. Rails rspec-rails 4 supports Rails 5.x and 6.x. For earlier versions of Rails, you need

relishapp.com

books.thoughtbot.com/assets/testing-rails.pdf

감사합니다.

'Ruby On Rails > RSpec' 카테고리의 다른 글

spring 특징  (0) 2021.12.15
System vs Feature vs Request spec  (0) 2021.12.15
나머지 스펙과 디버그에 대한 이야기  (0) 2021.04.10
model spec 작성방법  (0) 2021.04.10
Feature spec 작성방법  (0) 2021.04.10