Overview for 'davedevelopment'
Written by Dave Marshall
/ Original link
on May. 14, 2020
Recently Frank de Jonge published a blog post on Testing without mocking frameworks, it's a good read and a well thought out post, but there are a few things I disagree with. This post will be my commentary, you might want to read Frank's post first. I do have some skin in the game here, I'm one of…
Written by Dave Marshall
/ Original link
on Aug. 11, 2017
⚠️ Update! Troy Hunt recently released V2 of HIBP Passwords and removed the API rate limits, so you're probably better off using that service than setting up your own copy. Troy Hunt recently introduced HIBP Passwords, a freely downloadable list of over 300 million passwords that have been pwned in…
Written by Dave Marshall
/ Original link
on Dec. 22, 2016
Not sure why I didn't start doing this sooner. We have a basic Feature toggle system that is maintained in the global scope to make it easily accessible to any part of the code: Feature::isEnabled("something_awesome"); I needed to force a particular feature on in a PHPUnit integration test, but in…
Written by Dave Marshall
/ Original link
on Nov. 21, 2016
I previously talked about organising your test suites and one of the great benefits you get from doing so is that you are then able to run your tests in many different ways and configurations, so that the right tests get run at the right time. Running specific tests and test classes As I am writing…
Written by Dave Marshall
/ Original link
on Nov. 15, 2016
One way of keeping your test suites running fast is by organising them in a way that allows you to run the right tests at the right time. This might be running the faster, isolated tests to give you instant feedback in your TDD loop, or it might be running the most critical acceptance tests before…
Written by Dave Marshall
/ Original link
on Nov. 7, 2016
Faster tests get run more often. Fast tests are critical for people practicing TDD, keeping that feedback loop nice and tight. One of my favourite ways to keep tests running on time is to minimise the amount of waiting on I/O needed to exercise the system. There are a handful of ways to do this, it…