homeASCIIcasts

Episodes tagged with “testing”

  1. 300

    Contributing to Open Source Other translations: Ja

    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.

    Tags: tools testing

  2. 285

    Spork Other translations: Es Ja

    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.

    Tags: testing plugins tools

  3. 276

    Testing Time & Web Requests Other translations: Es Fr Ja

    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.

    Tags: testing plugins

  4. 275

    How I Test Other translations: Fr Es Ja

    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

  5. 264

    Guard Other translations: Ja Es

    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.

    Tags: tools testing

  6. 261

    Testing JavaScript with Jasmine Other translations: Ja Es

    Are you testing your JavaScript? Learn how to add specs using Jasmine. This episode also covers jQuery integration with jasmine-jquery.

    Tags: testing plugins

  7. 257

    Request Specs and Capybara Other translations: Ja Es

    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.

    Tags: testing plugins rails-30

  8. 187

    Testing Exceptions Other translations: Cn

    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.

    Tags: testing debugging

  9. 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.

    Tags: testing plugins

  10. 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.

    Tags: tools testing

  11. 159

    More on Cucumber

    There's more to Cucumber than was shown in episode 155. Learn how to refactor complex scenarios in this episode.

    Tags: testing tools

  12. 158

    Factories Not Fixtures Other translations: He

    Fixtures can make tests brittle and difficult to read. A better alternative is to use factories to create the necessary objects.

    Tags: testing tools

  13. 157

    RSpec Matchers and Macros

    Improve readability and remove duplication in RSpec by making use of matchers and macros.

    Tags: testing tools

  14. 156

    Webrat

    Using Webrat allows you to write integration tests in Ruby, rather than in English as you would with Cucumber.

    Tags: testing tools plugins

  15. 155

    Beginning With Cucumber Other translations: Cn

    Cucumber is a testing framework that lets you develop with Behaviour-Driven Development. We develop a new application using BDD in this episode.

    Tags: testing tools plugins

  16. 12

    Refactoring User Name Part 3 Other translations: It Es Fr

    In the final part of the episodes on testing and refactoring we'll refactor our test code.

    Tags: refactoring testing

  17. 11

    Refactoring User Name Part 2 Other translations: It Es Fr

    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