I’m writing a thin wrapper around ImageMagick and it seems that I cannot have more than one test function, otherwise ImageMagick blows up. The error bounces between two different locations in the ImageMagick code, so I suspect some form of timing bug is at play. I believe this has to do with IM’s requirement to start and stop the framework via two function calls, which almost certainly modifies global variables (ugh). This is based on other responses regarding these particular errors, on the IM forum.
My question is thus: when I invoke
cargo test, does it run the tests concurrently, or serially? If concurrently, is there an option or config setting to disable that behavior?
If the tests are run serially, then I must have a mistake elsewhere.
P.S. Yes, I know there is wand-of-rust, but it’s really old (over a year, that’s equivalent to a dog’s entire lifespan in Rust years!) and I only need a few functions, for now.