Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to test a local bluprint from disk #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jarib
Copy link

@jarib jarib commented Jul 13, 2022

I've implemented bluprint test ../local-dir as suggested in #21.

I tried to reuse as much as possible from bluprint start, which means importing some functions from ../start in the test command. I build a tarball of the given directory, in order to reuse most of those functions. It could probably be refactored to something cleaner, but I didn't attempt that here.

I made a best effort attempt at parsing .gitignore and ignoring those files when building the tarball. Another approach using git archive is available here: https://github.com/jarib/bluprint/tree/test-command-using-git-archive. The downside is that the files then have to be commited in the local bluprint's repo to be picked up by the test command. Seems like it would be easy to forget and a quite frustrating DX, so I prefer the approach in this PR.

@jarib jarib force-pushed the test-command branch 2 times, most recently from f361903 to 1fc8a3e Compare July 14, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant