Localhost Support
Stably supports creating tests on localhost. This is useful if you want to test your application in a local environment.
Setting Up Localtunnel
To create tests for your localhost application, you’ll need to create a tunnel that makes your local server accessible to Stably. Follow these steps:
-
Start your local application server (make sure it’s running on your desired port, e.g., 3000)
-
Run the following command to create a tunnel:
Replace <port-number>
with the port your application is running on. For example, if your app is running on port 3000:
-
If prompted to install the localtunnel package, confirm the installation.
-
After running the command, you’ll receive a tunnel URL that looks like:
-
Go to Stably App and use this tunnel URL to point your tests to your local environment.
The tunnel will remain active as long as your terminal session is open. To stop the tunnel, press Ctrl+C
in your terminal.