Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...
Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...
tl;dr Prefer request specs over end-to-end tests (Capybara) to joyfully test file downloads! Why? Testing file downloads
10.0.0 2024-03-07 Compatible changes console command: You can now globally disable the IRB multiline feature by setting irb...
You can chain multiple Capybara matchers on the page or any element: expect(page) .to have_content('Example Course')
A list of implementation details that make for a better / expected user experience. Have these in mind when implementing a...
Up until Chrome 120, scrollbars could only be styled using the various -webkit-scrollbar-* pseudo elements, e.g. to make the...
I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...
Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...
tl;dr We recommend configuring Selenium's unhandled prompt behavior to { default: 'ignore' }. When running tests in a real browser...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels pipelines with jobs...
Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...
tl;dr You can use ordered to ensure that messages are received in a specific order. Example expect(ClassA).to...
When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...
Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate...
View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...
Note Don't use reruns as a mean to work around flaky tests. You should always try to fix those...
Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
We often do some HTTP requests to fetch the data we want to check for certain criteria. Testing this in...