Open ericclemmons opened 3 years ago
No but that's exactly where I want to take this project!
Have you seen any of these projects?
Of these, Expect seemed the most geared towards interactivity, but almost too much so. Once I realised I could use function callbacks inside a JS tagged template DSL I felt it was worth inventing something new.
I do love the idea of a README test file but in the end I find Jest files readable enough so didn't pursue it. And I guess that's the biggest concept I'm exploring right now—if you use all of JS's tooling & a DSL, how good can you make the API?
One thing I've tried to do so far is avoid any inherent testing concerns inside Shellac, even though that's the whole point. But being able to drop into JS land in order to call expect
for me feels really powerful.
Happy to toss around suggestions, so far I think Shellac has proved itself to be a great idea, keen to see it expand to cover more use cases.
This is a really cool project!
I was looking at it to see if it could help make
@aws-amplify/cli
testable.The problem I see with the Amplify CLI is that it's interactive with prompts.
Before I found
shellac
, I was working on a tool that did the following:README.md
) and extracted theshell
code fences./tmp
directory and execute these shell scripts sequentially.The problem I ran into was trying to document the commands in a scriptable way:
Then, following this block would be a comment:
Did you have any thoughts on how
shellac
could support testing interactive CLIs?