Skip to content

Add command to test a local bluprint from disk#30

Open
jarib wants to merge 1 commit into
reuters-graphics:masterfrom
jarib:test-command
Open

Add command to test a local bluprint from disk#30
jarib wants to merge 1 commit into
reuters-graphics:masterfrom
jarib:test-command

Conversation

@jarib

@jarib jarib commented Jul 13, 2022

Copy link
Copy Markdown

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