You have an async function that rejects: async function failingFunction() { throw new Error("Something went wrong") } When you call that...
To navigate between test and test subject Rubymine requires you to set the test root sources as Test Sources Root...
Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
Capybara has a variety of finder methods like find_button to help you look up DOM elements. There are also...
Maintaining larger projects makes it more difficult to balance refactoring and upgrade tasks according to its actual value. Consider to...
A lot of web applications require being called over https, which is a good thing. It's possible to configure...
By activating strict_loading you force developers to address n+1 queries by preloading all associations used in the index...
Testing your responses in Rails allows to parse the body depending on the response MIME type with parsed_body.
In dieser Card machst du einige Übungsaufgaben um Linux Server mit Ansible zu verwalten. Da es vermutlich zu aufwendig ist...
If you need a sample video with certain properties for a test you can create one using ffmpeg.
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
Rails includes milliseconds in Time / DateTime objects when rendering them as JSON: JSON.parse(User.last.to_json)['created_at'] #=> "2001-01-01...
Let's assume that we have a model Movie that registers a callback function when a new instance of Movie...
I recently enjoyed debugging a Cucumber step that tried to be retryable using a patiently block: Then /^"([^"]*)" should( not)? be...
In diesem Kapitel wirst du eine Applikation in ein Containerimage verpacken und dieses via CI/CD bauen. Anschließend baust du die...
Timecop is a great gem to set the current time in tests. However, it is easy to introduce flakyness to...
You can execute systemctl --user --failed to check for failed systemd user units. But let's face it: It's...
In a Jasmine spec you want to spy on a function that is imported by the code under test. This...
We had a strange behaviour on one of our mariadb-servers: Everyday at around midnight we saw that the root...
When changing glibc versions, it's possible to end up with corrupt indexes in PostgreSQL. Are My Indexes Affected?
We usually rely on VCR and WebMock to prevent any real network connection when running our unit tests.
Du möchtest deinen AWS Account auf bestimmte Fehlkonfigurationen hin überwachen. Dafür wirst du AWS Config einsetzen. Über gebrochene AWS Config...