-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Feature] Pass multiple json files to replica #45
Comments
I try to replicate it this morning and I didn't encounter the issue. So it may be OS-specific (I'm on macOS). The Finally, Thanks for the feedback! |
It seems to be ok on ubuntu-20.04 too (at least if I can trust my docker image, that I will update in a next PR to ease the tests). |
I am using replica through the nix flake, revision e6abb84. I can reproduce on another computer. One of the advantages of nix is reproducibility so in case you have it installed, you can reproduce using |
e.g. what's the best way to run a bunch of .json tests ? |
The way I deal with it is by creating a huge json out of smaller dhall files with dhall import facilities. Dealing with several files need a bit of design thinking, but I may start it the easy way by considering that the set of files are parts of one big unique test suite.
|
I might be able to do that, I have already split my tests into several .dhall files. any public example ? dhall looks simple enough but it can speed up bootstrap to see an example. NB: flakes is a feature of nixUnstable so less straightforward to test. I think the problems is just because I tried to run several .json files so no need to bother you further :) |
Oh... if it works with a single test file in the directory, then it's probably the multi input: the parser consider all the arguments as options, only the last one is parsed as a file. If you want to stick to json, the best solution I can think of at the moment is a shell loop, not sure if "best" is the right word here. |
Yes, I was able to replicate the issue with several json files:
|
Unrelated but puzzled by the following:
I think I understand the set syntax yet the following call fails
|
The syntax is correct, I think the integration of I talked to fast, this one may be os related. It's definitely my fault: I've tested if the result of a set command works, but not the set command itself. |
Stupid me: it's |
While I would like |
let's keep it open and I'll try to include it to the roadmap. |
I've see a behavior I can't explain when using a glob: the shell expands correctly tests/*.json to tests/hello.json and replica sees the correct filename but it considers it as an option ?
if i type the filename directly it works ok
Finally I tried by adjusting the working directory
This is with rev e6abb84
The text was updated successfully, but these errors were encountered: