Setup Problems

Tests are not loaded

Started by jofors on 13,685 views

I can't longer load my unit-test into "NCrunch Tests"-window. I get: "Monitoring no tests, with no tests ignored".
This happend some time after I got the warning: "The Microsoft Git Provider has been detected as resident in the VS IDE". Don't know if that is related but before that I could monitor and run all my tests from NCrunch.
The projects are loaded and I get build staus and execution times for the projects. Among the prejcts (12 in total) I see my project with all the unit tests, but the tests are not loaded or handled.

How can I add/load all my tests into NCrunch for monitoring again?
I have tried to delete all config-files and run the Configuration wizard but still no tests loaded, only build status.
Hi,

Check that you haven't disabled any of your test frameworks using the NCrunch solution-level configuration settings.

The Git Provider warning should be in no way related to this kind of problem.

Would you mind submitting a bug report after you've initialised the system? The log in the report may yield some useful information.

If you haven't already, I do also recommend trying a reinstall. If something has removed or tampered with the NCrunch modules, it's possible they aren't being loaded and NCrunch isn't aware of the framework you're using.
Hi,

I have now done the steps as sugested, I re-installed NCrunch (NCrunch_VS2013_2.19.0.4.msi).

I have checked the settings for Test Frameworks and they are enabled as the picture shows:
[img=https://www.dropbox.com/s/of9fqu89ik4ay4g/2016-03-16%2010_28_00-Producera.png?dl=0]NCrunch Configuration - Test Frameworks[/img]

I also saved a bug report after I have runned the configuration Wizard:
NCrunch Bug Report


The situation is the same, build-tasks are listed, but none of the tests.

Can you find anything in the bug report?
Thanks for sending through the bug report. It contained something very interesting:

Unable to load description for framework 'nCrunch.Module.Gallio.Integration.GallioTestFramework': System.MissingMethodException: Metoden hittades inte: Void nCrunch.TestExecution.TestFrameworkDescription.set_FrameworkAssemblyNames(System.String[]).
vid nCrunch.Module.Gallio.Integration.GallioTestFramework.GetDescription()
vid nCrunch.TestExecution.Frameworks.TestFrameworkRegistry.GetDescriptionForEachFramework()
Unable to load description for framework 'nCrunch.Module.MSTest.Integration.MSTestFramework': System.MissingMethodException: Metoden hittades inte: Void nCrunch.TestExecution.TestFrameworkDescription.set_FrameworkAssemblyNames(System.String[]).
vid nCrunch.Module.MSTest.Integration.MSTestFramework.GetDescription()
vid nCrunch.TestExecution.Frameworks.TestFrameworkRegistry.GetDescriptionForEachFramework()
Unable to load description for framework 'nCrunch.Module.NUnit.Integration.NUnitTestFramework': System.MissingMethodException: Metoden hittades inte: Void nCrunch.TestExecution.TestFrameworkDescription.set_FrameworkAssemblyNames(System.String[]).
vid nCrunch.Module.NUnit.Integration.NUnitTestFramework.GetDescription()
vid nCrunch.TestExecution.Frameworks.TestFrameworkRegistry.GetDescriptionForEachFramework()
Unable to load description for framework 'nCrunch.Module.XUnit2.Integration.XUnit2TestFramework': System.MissingMethodException: Metoden hittades inte: Void nCrunch.TestExecution.TestFrameworkDescription.set_FrameworkAssemblyNames(System.String[]).
vid nCrunch.Module.XUnit2.Integration.XUnit2TestFramework.GetDescription()
vid nCrunch.TestExecution.Frameworks.TestFrameworkRegistry.GetDescriptionForEachFramework()


... The only thing I know that can cause this is a version clash between the NCrunch engine and the NCrunch modules. This can happen if somehow modules from a previous version of NCrunch are being loaded into the engine.

Try doing the following:
1. Uninstall NCrunch from VS2013 using the uninstaller
2. Browse to "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Remco Software\NCrunch for Visual Studio 2013" ... Ensure this directory and anything left in it are completely deleted.
3. Reinstall NCrunch
Hello again,

thank you for the suggestions. I have done the three steps you suggested and now all my tests are being loaded. So far so good but when I now tries to start tests, they do not run and does not come on the 'Processing Queue'. But in the Tests-window the status says "Pending, Impacted" and when I manually start a test in the Tests-window it changes status to "Pending, Prioritised Impacted". But even then the test is not processed.
jofors wrote:Hello again,

thank you for the suggestions. I have done the three steps you suggested and now all my tests are being loaded. So far so good but when I now tries to start tests, they do not run and does not come on the 'Processing Queue'. But in the Tests-window the status says "Pending, Impacted" and when I manually start a test in the Tests-window it changes status to "Pending, Prioritised Impacted". But even then the test is not processed.


This appears to be a different problem entirely. Is there any error information available in the processing queue? Feel free to submit another bug report if you'd like me to analyse a bit deeper.

Edit: It may also be worth checking that you don't have the 'Max number of processing threads' set to 0.

Edited

The processing queue did only report that the build tasks are completed. But after I had changed my 'Test process memory limit' setting from 0 bytes to 1024000000 bytes the test came up on the processing queue as "Pending", but they still won't run.
I have checked the 'Max number of processing threads' and it is set to "8".

My settings:
[img=https://www.dropbox.com/s/tr3t1mc0jn0x7l5/2016-03-17%20--%20NCrunch%20Settings.png?dl=0]NCrunch Settings[/img]


Bug Report:
NCrunch - Bug Report
Thanks for sharing the bug report. From your screenshot, I noticed that you have a 'Test filter' set to 'False' on your local machine. This will tell the engine not to execute any test (as the filter evaluates to false). Try changing this to True, and see if this makes any difference.
Thank you!

Now it is all running again, seems that all my configuration settings where deleted when I had to deleted the Extensions-folder for NCrunch and the default settings did not apply after I had re-installed the software.

Post a reply

Log in to reply.