Testing Locally is Slowing You Down
Tags: programming, testing, webdev, cloud
Published: 2021-10-24 14:16:50

Written by Lior Ben David.

---

_"If you're not using a live test environment, you're making your life harder than it needs to be."_

Tell me if this sounds familiar?

You're building a backend application that's working exactly how you want it to on your local machine. Time to ship!
After setting up your hosting, you deploy, wait a minute or two, and…

It's not working right!

**If this was your local machine you could see all the error messages and tweak things until it's working properly - but it's not.** You have to figure out what in the world is wrong with your app by navigating your cloud's third-party error messages.

![apperror](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/66fhkp7do829phyq6nrt.png)

![error](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps4df2q6vapt0384irkd.png)

So now your only option is trying to debug locally, redeploy, and repeat. This process not only is long but it's frustrating.

You'd think as developers we wouldn't have to deal with this kind of bureaucracy.

--- 

###Ship In A Bottle

Trying to debug your deployment without access to the actual deployment environment is like trying to fix a ship in a bottle.

![shipinbottle](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hu0tlduf972dgu94ir7o.png)

Instead of having full access to what you need to fix, you're bottlenecked by your cloud provider.

As developers, we are trained in debugging, but we can't debug if we don't have all the information in front of us.
That's the issue with not having a live test environment. Deploying locally is rarely difficult because we can see what goes wrong. Deploying in the cloud, however, creates an information asymmetry that takes way too much time, resources, and headspace to navigate.

---

###Shopify, Slack, And More

A whole different layer to this issue exists when you're building something like a Shopify or Slack app, that can only be tested when hosted live.

When building software like this, testing locally becomes nearly impossible, forcing you to play the cloud waiting game any time you want to test your code.

**What if working in your cloud environment was as easy as working locally?**

Development doesn't have to be this way. If you're not using a live test environment, you're making your life harder than it needs to be.

A live test environment will allow you to debug your code directly in the cloud, where it's going to be deployed. This way, anything that goes wrong in deployment will be fully visible to you and you can make sure everything is working exactly how you need it.

Additionally, debugging directly in the cloud means no more waiting for your app to deploy just to find out if it works. Running in the cloud can be just as easy as it is on your local machine.

That's what we're building at [Codesphere](https://link.codesphere.com/EV), an intuitive cloud provider meant to give you full, live access to the cloud environment, including the terminal, monitoring, and file system(Through a web IDE).

Our goal is to take the bottlenecks out of shipping your app (see what I did there?), so you can spend less time debugging your deployment, and more time actually coding.

Is this a problem you've been facing? Let us know down below!