Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How a test runner can give arguments to the unit tests? #1297

Closed
duongphuhiep opened this issue May 24, 2017 · 1 comment
Closed

Comments

@duongphuhiep
Copy link

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?

Thanks

@bradwilson
Copy link
Member

There is nothing built in today (and no plans for anything). Our best suggestion here is either via a file or environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants