Unity Unit tests - trying to supply parameters via command line

Hi all.

I have a data-driven unit test framework living inside a unity edit mode test assembly (so it references Unity’s custom NUnit dll, and target the editor platform). The framework is designed to accept some string parameters via the command line. The parameters are intended to be paths to data files it will read from.

I am quite familiar with the NUnit framework, so I assumed that I could set these file path parameters via the -testParams argument. However, -testParams is only supported by NUnit console runners. It seems the Unity Testing Framework allows command line invocation of tests via the unity executable, and not the NUnit console runner. When I tried using a NUnit3 console runner, and point at the dll containing the unity tests, I got errors about missing referenced assemblies.

Is there an alternative way I can supply text parameters to a Unity unit test execution?

Thanks!

It turns out that Unity.exe is very flexible with receiving additional command line arguments. Any additional arguments delivered to it can be looked at from within a unit test via:
string[ ] CLIArguments = System.Environment.GetCommandLineArgs();