As a software engineer, you might need to consume an API that is not completely ready yet, or maybe you're still waiting for the API key that is taking forever to be provided. So why not test happy paths, edge cases, failures, timeouts, and performance constraints with API stubs through a mocked HTTP server? Here's why WireMock is a great solution!
When you're working with a REST API, it's very important to guarantee that the data you're receiving match some defined rules and will not break the system. How do we do this? Meet Laravel's request validation tool.
When we're programming, most of us think about solving the problem that lies ahead. But instead of asking, "How do I create code that works?" we should be asking, "How do I solve problems in the most efficient and elegant way, consuming as little processing capacity as possible?"
More important than testing is knowing what to test and how often to test. Here's how you can optimize the time and money you spend on automated software tests during development.