-
Notifications
You must be signed in to change notification settings - Fork 74
Testing
Matthew Conway edited this page Sep 5, 2015
·
4 revisions
Pliny tests are composed:
- in RSpec
- using MiniTest assertions
Pliny's default setup does not enable RSpec expectations. See: config.expect_with
in spec_helper
These are tests running on behalf of your users, focused on testing the "happy paths" of your application with as little mocking and stubbing as possible. As a result they tend to be more costly, both in terms of the effort it takes to setup and in terms of how long they take – but having a test that ensures your endpoints remain stable is well worth the cost.
To run all tests in your app:
$ rake
You can then use the rspec
binary to run a single test suite:
$ rspec spec/acceptance/artists_spec.rb
Or even a single test case:
$ rspec spec/acceptance/artists_spec.rb:16 # run only test defined around this line
Basics
Diving in
- bin/setup
- Config
- CORS
- Endpoints
- Error Handling
- Logging
- Models
- Mediators
- Migrations
- Rake Tasks
- Request IDs
- RequestStore
- Schema
- Serialization
- Testing
- Updating
Guides