-
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
Run multiple cases in a toml file #25
Comments
Couldn't you model it something like this, combing a few of the test cases in this project as an example: bin.name = "bin-fixture"
[basic]
[sandbox]
fs.sandbox = true
[sandbox.env.add]
write = "file.txt = Goodbye\nWorld"
cat = "file.txt"
[stderr-to-stdout]
stderr-to-stdout = true
[stderr-to-stdout.env.add]
stdout = """
Hello
World!
"""
stderr = """
Goodnight
Moon!
""" I haven't tried deserializing that, but I would expect that it'd look something like: struct TomlFile {
global: OneShot,
cases: HashMap<String, OneShot>,
} It might be a better idea to put the test cases in an array of tables though, So, if there are no cases are defined the current behavior is used. If cases are defined, then the |
Since this issue was created, we've added inline stdout/stderr support (just too many disparate files to juggle in large cases like Now its just a matter of moving forward with implementing this. We'd need to use an Array of Tables for the cases since they are order-dependent. We'd also want the So the data model would be to just expose the pub enum TrycmdSpec {
OneShot(OneShot),
MultiStep(TryCmd),
} I'm assuming so. So after that, its just getting around to implementing this. |
*.trycmd
files support this but not*.toml
. This discrepancy can push someone to*.trycmd
files when they might be best served by the extra control of*.toml
files.Open Issues
*.toml
file.binary
supportTRYCMD=overwrite
support, seeTRYCMD=overwrite
support for*.trycmd
files #23 (we are already using a format-preserving TOML library)The text was updated successfully, but these errors were encountered: