Getting Started
Command Line Interface
Use the Phospho CLI to interact with the Phospho API
Use the phospho CLI to run offline tests.
Installation
The phospho CLI is a Python package. Install it with pip:
Initialization
Make sure you have installed the CLI and created a phospho account.
Login to the CLI with the init
command:
This does two things:
- It stores phospho credentials in your home directory:
~/.phospho/config
. Use theconfig
command to see the stored credentials:
- It creates a file
phospho_testing.py
in the current directory. You can edit this file to customize your tests.
Run the tests
To run the tests in phospho_testing.py
, use the test
command:
Discover the results by following the link in the terminal output or by visiting the phospho platform.
Add tests and customize tests
Tests are written in Python. Edit the phospho_testing.py
file to add your tests.
phospo testing module
Learn how to edit phospho tests
Was this page helpful?