-
Notifications
You must be signed in to change notification settings - Fork 152
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
NUnit.Engine: Exploring test assembly tree returns result with a failure message #1358
Comments
Have you looked at the code for the NUnit.Engine? I'm transferring your question to that repo. |
@OsirisTerje So I've managed to get the test tree stucture using NUnitTestAssemblyRunner. When the test assembly has .NET Framework 4.61 and the project I'm getting the structure from has 4.8.1 then I get the structure sucessfuly from the ITestAssemblyRunner Load method. But if the project has .NET 5.0 SDK then the result from the Load method has no tests in the Tests property. |
Check if the "software under test" (SUT) works with |
And, just curious: Are you creating your own runner for fun/training or is there some special situation you are trying to solve? |
We run our UI tests on multiple environemnts that doesn't have VS installed. Since the beginning, we've been running tests with NUnit Console Runner but this solution has become not suitable for our current needs. Sometimes we have to rerun some testcases and for this case it would be much better to have a tree structure a tester can choose the testcases from. |
Have you tried the TestCentric GUI runner? |
@CharliePoole I have not, but I definitely will. Altough I'm not sure wheter it will cover all of our needs (e.g. we need to setup the environment based on settings set by a tester before the test, generate result file with specific structure and make an API call after the test) |
@OsirisTerje Could you please be more specific? If you meant to run the test with another test adapter then I can verify it's possible to run it with Visual Studio Test Adapter. |
@i-m-luke Key question for me is the version and target runtime of the engine you are getting from |
@i-m-luke Try this with the latest build of the engine from our myget feed. It has targets for both .Net 6.0 and 8.0. |
I'm developing a custom testrunner app and I want to display a test tree structure. I want to read the test tree structure directly from a test assembly file and to achieve that I use this code:
I sucessfully get a result from the Explore method but there is a failure message in the result xmlnode and no desired test tree structure. Here is the failure message from the result: " System.ComponentModel.Win32Exception :The system cannot find the file specified. "
After some experiments I've figured out the conditions that have to be met to explore tree stucture sucessfully:
Is this a feature or a bug? If it's a feature: Is there any way to workaround this? Because I'd like to use some later framework (.NET Framework 4.8 or .NET) as target framework of the application. Yes, I could higher up target framework version of the test assembly but I'd rather avoid this solution.
The text was updated successfully, but these errors were encountered: