CreatedMay 9, 2022 2:58 PMTags🔧 Developer Tools🗄 Backend DevelopmentLibrary🛠Engineer: Tech | Engineering | DevelopmentLast edited timeNov 30, 2023 3:31 PMPublished?Upcase : Test Doubles | RSpec Stub Online Tutorial by thoughtbotExplore thoughtbot's video tutorials, exercises, and forum discussions on Test Doublesthoughtbot.comUpcase : Stubs, Mocks, Spies, and Fakes | Online Video Tutorial by thoughtbotJoe and Gabe review the four types of test doubles: stubs, mocks, spies and fakes. Learn what the key differences are between each type, as well as when you'd want to consider using them. See examples written using rspec-mocks, as well as an example of a robust fake for braintree.thoughtbot.comMake Your Jest Tests up to 20% Faster by Changing a Single SettingWhen you have Jest as your test runner, passing the --maxWorkers=50% option will make the tests faster in most cases. For watch mode, use --maxWorkers=25%, and for CI disable Jest workers with --runInBand. You can experiment with the percentage and fine-tune for your particular setup.dev.toMocks Aren't StubsI'll begin by illustrating the two styles with a simple example. (The example is in Java, but the principles make sense with any object-oriented language.) We want to take an order object and fill it from a warehouse object. The order is very simple, with only one product and a quantity.martinfowler.comLet's NotRSpec is an excellent test framework with a large community and an active team of maintainers. It sports a powerful DSL that can make testing certain things much easier and more pleasant. However, there are a few features of RSpec's DSL that are frequently overused, leading to an increase in test maintenance and a decrease in test readability.thoughtbot.comCommon mistakes with React Testing LibrarySome mistakes I frequently see people making with React Testing Library.kentcdodds.comMocking JavaScript Requests During Tests - FastRuby.io | Rails Upgrade ServiceWhen we run tests, we don't want to hit external services in most cases, so our tests don't depend on external services and are more stable. We can use gems like VCR or WebMock to stub the requests that are done by the Rails application, but when the request is...www.fastruby.ioIntegrated Tests Are A ScamUPDATE. It's 2021 and although I still broadly agree with the content of this article, I don't like the style of it any more. I find it too abrasive and judgmental. I'm sorry about that. I leave this article here because I'm not ready to rewrite it just yet.blog.thecodewhisperer.comThread by @GeePawHill: "TDD Pro-Tip: What we TDD most rigorously and faithfully is *our* *branching* *logic*. This is the insight one needs to start gaining TDD's m [...]"TDD Pro-Tip: What we TDD most rigorously and faithfully is *our* *branching* *logic*. This is the insight one needs to start gaining TDD's massive productivity benefit. All three terms are important, "our", "branching", and "logic", so let's take them one at a time.threadreaderapp.comfrontendtestfest.comfrontendtestfest.com