Episodes tagged with “testing”
-
300
Contributing to Open Source Other translations:
GitHub makes it easier than ever to contribute to open source with pull requests. Here we show how to submit a pull request to the VCR project.
-
285
Spork Other translations:
Spork improves the loading time of your test suite by starting up your Rails application once in the background. Use it with Guard for the ultimate combo in fast feedback while doing TDD.
-
276
Testing Time & Web Requests Other translations:
It can be difficult to test code that deals with the current time or an external web request. Here we show you how to do both using the Timecop and FakeWeb gems.
-
275
How I Test Other translations:
Here we show how we would add tests to the password reset feature created in the previous episode. We use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs.
Tags: testing refactoring
-
264
Guard Other translations:
Guard watches files and runs a command after a file is modified. This allows you to automatically run tests in the background, restart your development server, reload the browser, and more.
-
261
Testing JavaScript with Jasmine Other translations:
Are you testing your JavaScript? Learn how to add specs using Jasmine. This episode also covers jQuery integration with jasmine-jquery.
-
257
Request Specs and Capybara Other translations:
Request specs in RSpec are a great way to ensure the entire application stack is working properly. Here I also show how to use capybara with integrated JavaScript testing using Selenium.
-
187
Testing Exceptions Other translations:
Even well tested code can sometimes raise exceptions. In this episode we show you how to be notified about this and how to resolve these errors by making use of integration tests.
-
186
Pickle With Cucumber
Pickle adds a number of convenient Cucumber steps for generating models. Learn how to use Cucumber's table diffs as well.
-
166
Metric Fu
Metric Fu is a compliation of tools that help you find the places in your code that need improvement. See what they have to say about the Railscasts codebase.
-
159
More on Cucumber
There's more to Cucumber than was shown in episode 155. Learn how to refactor complex scenarios in this episode.
-
158
Factories Not Fixtures Other translations:
Fixtures can make tests brittle and difficult to read. A better alternative is to use factories to create the necessary objects.
-
157
RSpec Matchers and Macros
Improve readability and remove duplication in RSpec by making use of matchers and macros.
-
156
Webrat
Using Webrat allows you to write integration tests in Ruby, rather than in English as you would with Cucumber.
-
155
Beginning With Cucumber Other translations:
Cucumber is a testing framework that lets you develop with Behaviour-Driven Development. We develop a new application using BDD in this episode.
-
12
Refactoring User Name Part 3 Other translations:
In the final part of the episodes on testing and refactoring we'll refactor our test code.
Tags: refactoring testing
-
11
Refactoring User Name Part 2 Other translations:
Having moved code from the view to the model in part one, we'll refactor it and write some tests to make sure it all still works as expected.
Tags: refactoring testing