It makes perfect sense. It's a use-case I've had sitting on the shelf for far too long. Passing external parameters to tests is a very useful feature and is something I'd like to get into v3.2 or v3.3 if I can find the time.
The quickest workaround for now is to use environment variables to pass the data around. Environment variables are inherited by the gallio.host.exe process so it should work even when running in a separate process. Use the functions on System.Environment to access environment variables. Incidentally, the .Net framework does provide a method to get the command-line args called Environment.GetCommandLineArgs(). Of course it won't work if the tests are running out of process. Jeff. On Thu, Feb 4, 2010 at 8:08 AM, Danny <[email protected]> wrote: > Basically we would like the ability to see all command line arguments. > We are fine with requiring the use of the “/runner-property” option if > that is the best we can get, but if we don’t run as isolated App > Domain we can’t even see these in the command line (I guess it’s > because we actually run under Gallio.Host and not Gallio.Echo?) > > Here is rational – we want to be able to control some aspects of tests > using the command line. We would like our Continues Integration server > to run our tests automatically using one set of input parameters (CSV, > database and some configuration files) this would be a quick sanity > test of the system before passing it into QA. This would test options > that are available using only one computer. QA would use different set > of input parameters – with much more options and varieties – which > require installation of multiple components on multiple machines and > interaction that the CI can’t automatically do. > > Hope that makes sense, > > Danny. > > -- > You received this message because you are subscribed to the Google Groups > "MbUnit.User" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<mbunituser%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/mbunituser?hl=en. > > -- You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en.
