Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.02 KB

DEVELOPMENT.md

File metadata and controls

39 lines (26 loc) · 1.02 KB

Development

fix.sh

If you want to use rbenv/pyenv/etc to manage versions of tools, there's a fix.sh script which may be what you'd like to install dependencies.

Overcommit

This project uses overcommit for quality checks. bundle exec overcommit --install will install it.

direnv

This project uses direnv to manage environment variables used during development. See the .envrc file for detail.

Tests

To get full realtime output from tests to debug e.g. slowness issues:

pytest tests/test_bake_project.py --capture=no -k test_bake_and_run_build

You can debug overall test timings with:

time pytest tests/test_bake_project.py --durations=0

It's also useful to replace 'make test' with something that will give you real-time stdout/stderr in test_bake_project.py.

You can then wrap time commands around different things that shell out, or do this type of technique for things which aren't a simple shell-out.