Running Keploy Natively on MacOS by setting up a linux env
Downloading and running Keploy in Native using Debian on MacOS
-
Open the terminal Session.
-
Run the following command. This installs homebrew and makes it easier to manage software and packages on macOS
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Now, with the help of homebrew, we would install Lima (Linux Virtual Machine) by running this command.
brew install lima
-
Create a Debian instance.
limactl create template://debian-12
-
Start the instance
limactl start debian-12
-
Enter the shell of the running linux instance
limactl shell debian-12
-
Now you are in the linux shell of the debian instance. Replace
{Username}
with your actual macOS username in the following command. This will take you directly to your macOS home directory. (You might need to allow access to Terminal.app in a popup)cd /Users/{Username}
-
Run the following command to install Keploy
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_arm64.tar.gz" | tar xz --overwrite -C /tmp
sudo mkdir -p /usr/local/bin && sudo mv /tmp/keploy /usr/local/bin/keploy
Congratulations! You've successfully set up Keploy natively on MacOS.
What's Next?
🎬 Start Capturing Testcases
Begin recording your API calls and generating test cases with Keploy.