Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...
Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:
Embedding videos on a website is very easy, add a tag to your source code and it just works...
To find an input with the type hidden, you need to specify the type hidden: find_field('Some label', type...
If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":
Or: How to avoid and refactor spaghetti code Please note that I tried to keep the examples small. The effects...
Imagine you want to write a cucumber test for a user-to-user chat. To do this, you need the...
This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...
PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...
Sometimes, you might have duplicate links on a page. Trying to click those links will by default cause Capybara to...
Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...
When you have two inputs, where one contains the name of the other (eg. Name and Name with special treatment...
Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...
To test that an object was constructed by a given constructor function, use jasmine.any(Klass): describe('plus()', function() { it ('returns...
If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration...
When tests might not run with skipping RSpec in the RSpec.describe failing with the error undefined method 'describe' for main...
Fixed #68: The "cucumber" command now fails early when @solo features fail. Added: The "setup" command now prints the db...
There is a kind of features in web applications that hinder automated integration tests. Examples include cookie consent banners or...
ActiveSupport (since 4.1) includes test helpers to manipulate time, just like the Timecop gem: To freeze the current time, use...
Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not...
Most of the time it is a tedious task to apply a code style guide to an existing code...
When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...
The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...
When upgrading Clearance, pay attention whether the password hashing strategy might have changed. Old clearance versions (< 1.0) used SHA1-encrypted...