but once the command is started, the following arguments are interpreted as new commands and Rhino responds with an “Unknown command”.
So what’s happening “behind the hood” in a Rhino command that differs form a custom command?
It seems like _Line is able to capture args, while my _JT_TestSuite command isn’t.
(NOTE: paths I provide as args do not contain spaces)
There may be a bug here, I need to test this on my end. However, I do notice that you have a second underscore between JT and TestSuite which might be throwing off the parsing of the Macro. What happens if you remove that second underscore by renaming your command JTTestSuite?
I tried renaming the command to JTTestSuite but the arguments are not recognised nonetheless.
Please let me know if you find out something on your side.
This is weird and I haven’t figured it out yet, but I can reproduce what you’re seeing. As I debug this, I’m going down quite a rabbit-hole.
In the meantime, try this: make your JT_TestSuite command a script runner command. With my test-harness, this dodged the bug. I don’t know why …yet…and it feels a little nonsensical.
actually looks like this is wrong, unfortunately. I think there must be a race-condition somewhere in our script parsing code. Sometimes running my test-harness works, sometimes it does not. I’ll keep looking.
For CI, I have found that this works: --runscript "-_RunPythonScript /path/to/your/test-script.py"
but it likely requires you rethinking where you put your test logic, which is not ideal.