0

Base on this excellent sample

I'm able to create a custom Test Runner to execute any external tests dlls. Something like:

testReport = MyTestRunner.Run(@"External_Unit_Test.dll");

MyTestRunner wants to give some arguments / configurations to External_Unit_Test.dll before its run. How to achieve that?

For now MyTestRunner will write the arguments / configuration in a temporary file, then External_Unit_Test.dll will read the configuration from it.

Is there a better way to communicate between MyTestRunner and External_Unit_Test.dll?

The question is also asked here on GitHub

1 Answer 1

1

As covered in various xUnit issues, there is no specific facility of xUnit.net wrt this.

Normally such context is passed through Environment Variables (perhaps with a level of indirection by packing stuff up in a config file of some kind and then passing the path to that).

This lowest common denominator approach also works well with typical CI rigs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.