-
Notifications
You must be signed in to change notification settings - Fork 18
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
Can a trycmd file have a per-command CWD? #43
Comments
Personally, I would like something like this. Here's my current use case. I have a cli that does a transformation on a set of input files. Ideally, I'd like to be able to define a single |
The main question for doing this is syntax. The more involved syntax we have, the more likely we are to collide with application output. Already we have the following reserved:
How come you are wanting multiple test cases in a For me, I keep test cases separate, whether I'm using |
After your response in the other issue, I dug through what the toml files can do, and see that I can reuse an input directory with them by setting To me, it is desirable to write multiple test cases per file because it seems like a natural way to organize similar types of test cases and avoids a proliferation of small files. |
Note that we also have #25 |
What about something like:
Where lines prefixed with |
If we supported those comments anywhere, then can conflict with markdown output. If we only support it before the first command or in the markdown infostring then it doesn't help us with per-command actions like setting CWD. We could maybe do If I didn't have to worry about conflicts with users, my ideal CWD syntax would be parent/child $ cmd |
This would offer some flexibility if it is obvious and doesn't complicate the syntax since we have to detect the end of one command's output from the start of the next.
The text was updated successfully, but these errors were encountered: