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

Overall result: Unknown #727

Open
mogikanin opened this issue Jan 15, 2020 · 2 comments
Open

Overall result: Unknown #727

mogikanin opened this issue Jan 15, 2020 · 2 comments
Labels
Bug Needs Confirmation V4 All issues related to V4 - use -label:V4 to get non-V4 issues
Milestone

Comments

@mogikanin
Copy link

Hello, the weird thing happens with latest 3.10.0 console runner. It returns "unknown" test result.

  Test Run Summary
  Overall result: Unknown
  Test Count: 0, Passed: 0, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0

Same thing happens on 3.9.0, 3.8.0. Only 3.7.0 works almost fine, except it returns a bunch of errors for projects without tests.

No suitable tests found in... Either assembly contains no tests or proper test driver has not been found.

For project files loading it uses NUnit.Extension.VSProjectLoader v.3.8.0

used command line:

nunit3-console.exe --noresult --labels=All --framework=net-4.5 --config=Debug --domain=Multiple  solution_file.sln

The first question, is there a way to disable No suitable tests found in in 3.7.0 runner? And the second, why happens result: Unknown in newer versions 😄 If needed, I can provide logs from runner.
Thanks in advance!

@mikkelbu
Copy link
Member

Regarding disabling No suitable tests found in then you can use --skipnontestassemblies (if it exsists in 3.7). See https://github.com/nunit/docs/wiki/Console-Command-Line for more information.

Regarding the status then it appears when the console cannot parse the result from the test results. Can you upload the test results (after removing the option --noresult). Also you can try --trace=Debug to get more information in the logs.

@mogikanin
Copy link
Author

@mikkelbu thanks, --skipnontestassemblies works fine in 3.7. But appeared new errors "Invalid\File Not found" for projects which uses choose-when conditions inside csproj file.
I believe this is a reason of issue.
All of these projects uses conditional assembly name like this:

 <Choose>
    <When Condition="$(Configuration.Contains('Conf1'))">
	   <PropertyGroup>
		<AssemblyName>assembly1</AssemblyName>
      </PropertyGroup>
    </When>
    <Otherwise>
	 <PropertyGroup>
		<AssemblyName>defaultName</AssemblyName>
      </PropertyGroup>
    </Otherwise>
  </Choose>

For 3.10.0 I've attached logs.
nunit_output.zip

@CharliePoole CharliePoole added this to the 4.0 milestone Mar 9, 2022
@CharliePoole CharliePoole added the V4 All issues related to V4 - use -label:V4 to get non-V4 issues label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Confirmation V4 All issues related to V4 - use -label:V4 to get non-V4 issues
Projects
None yet
Development

No branches or pull requests

3 participants