New: Compute@Edge local testing puts you in control of your testing setup
We’ve been truly impressed by the wide range of next-gen services our customers are bringing to life, now that production traffic is running on Compute@Edge, which is used to build, test, and deploy code in our serverless compute environment. But there are still challenges to overcome in order to unlock the full potential of serverless. Today we’re addressing one of them by introducing local testing for Compute@Edge.
Compute@Edge local testing gives you the flexibility to run your work-in-progress applications locally on your laptops, servers, or CI systems, in an environment similar to production — but without the deployment time and process. And because there's no deployment step involved with local testing, you can easily use the tool as part of your existing automated testing processes, including for unit tests and integration tests in CI, giving you control of your testing setup.
A flexible environment to test and iterate
This new feature makes testing as accessible and as close to the actual production environment as possible, making it easier than ever to get started with Compute@Edge, experiment, and iterate faster when you’re debugging. Debugging was previously possible with log tailing, but the introduction of local testing gives you a scalable and repeatable regression testing path that takes the added step of deployment off your plate.
Closely imitating the production environment, local testing gives you full fidelity to standard WASI hostcalls, core HTTP operations (manipulating and sending requests/responses), and logging. Plus, with the Fastly Command Line Interface, you can get to production sooner, with the ability to develop, test, and iterate from a single location to ensure your applications are performing optimally before you release them to your end users.
Local testing is a critical component of the application development workflow and is another way we’re keeping our dedication to the best developer experience possible. Find out more — including how to get going — in our Developer Hub. And if you're not yet using Compute@Edge, sign up now and experience the power of serverless for yourself.