Posts tagged "tests"
Ever since I started working with Ruby I have been using RSpec to test my apps and gems without giving minitest much thought. Recently I started a new non-Rails project and decided to give Minitest a try just for the fun of it. Migrating from one tool to another was refreshingly fun due to the … »
Tags: minitest, ruby, tests, Posted in English, 8 Comments »
TL;DR: test quality is not just about verifying correctly whether your code works, it’s also about making your test easy to read and understand. You can do that by structuring your test using the four-phases xUnit standard. The 4 phases of a test: setup, exercise, verify and teardown People don’t write tests to be read, … »
Tags: tests, Posted in English, 7 Comments »
Three quick short tips to improve the performance of your test suite!
Tags: capybara, devise, performance, tests, Posted in English, 15 Comments »
A while ago we were working on an application that had an entire version specially created for mobiles, such as the iPhone. This specific application was entirely tested with Capybara, Steak and Selenium Webdriver. Although the test suite wasn’t the fastest one in the world, the web application was very well tested, and to guarantee … »
Tags: acceptance tests, capybara, rails, selenium, tests, user agent, Posted in English, Comments Off on Configuring User Agents with Capybara + Selenium Webdriver
Here at PlataformaTec we like to use Capybara for acceptance tests. Recently we have discovered the custom selectors feature in Capybara and we would like to share with you how that feature helped us to improve our tests. Sometimes we need to implement features that involves showing some ordered items to the user, like a … »
Tags: capybara, tests, Posted in English, 6 Comments »
One of the beauties in the Open Source world is the possibility of reading other people source code and learn new things. However, lately I found out that not only the library code, but the test suite of several open source projects are full lessons for us. In this post, I want to tell you … »
Tags: capybara, euruko, i18n, open source, rails 3, railties, ruby, tests, Posted in English, 5 Comments »