For Easy Diffusion developers:
- Setup a working installation of Easy Diffusion.
- Open the
Developer Console. - Run:
python -m pip install pytest python -m pip uninstall sdkitto remove the installed sdkit.python -m pip install -e git+git@github.com:easydiffusion/sdkit.git#egg=sdkit- Delete the newly created
src/sdkitdirectory inside Easy Diffusion:
- Windows:
rmdir src\sdkit - Linux/Mac:
rm -r src/sdkit
- Create a link to your local sdkit repo:
- Windows:
mklink /J src\sdkit D:\path\to\your\sdkit\repo - Linux/Mac:
ln -s /path/to/your/sdkit/repo src/sdkit
- Run the tests with:
pytest src\sdkit\tests
pytest tip: You can also run specific test files by running pytest src\sdkit\tests\test_some_file.py. For verbose logging, use the -v flag.
For regular sdkit developers:
- Setup a working installation of sdkit.
- Run
python -m pip install pytest - Run
pytest testsinside the project folder.