Use the phospho CLI to run offline tests.
Installation
The phospho CLI is a Python package. Install it with pip:
Initialization
Login to the CLI with the init command:
This does two things:
- It stores phospho credentials in your home directory: ~/.phospho/config. Use theconfigcommand to see the stored credentials:
- It creates a file phospho_testing.pyin 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.
- 
phospho testing module 
 Learn how to edit phospho tests