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:
pip install phospho
phospho --version # Check the installation
Initialization
Make sure you have installed the CLI and created a phospho account.
Login to the CLI with the init
command:
phospho init
This does two things:
- It stores phospho credentials in your home directory:
~/.phospho/config
. Use theconfig
command to see the stored credentials:
phospho config
- 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:
phospho test
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?