Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Tests are not loaded
jofors
#1 Posted : Monday, March 7, 2016 2:49:36 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/7/2016(UTC)
Posts: 5
Location: Sweden

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
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.
Remco
#2 Posted : Monday, March 7, 2016 10:13:50 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
jofors
#3 Posted : Wednesday, March 16, 2016 9:48:06 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/7/2016(UTC)
Posts: 5
Location: Sweden

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
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?
Remco
#4 Posted : Wednesday, March 16, 2016 10:49:36 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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
1 user thanked Remco for this useful post.
jofors on 3/17/2016(UTC)
jofors
#5 Posted : Wednesday, March 16, 2016 12:54:15 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/7/2016(UTC)
Posts: 5
Location: Sweden

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
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.
Remco
#6 Posted : Wednesday, March 16, 2016 8:58:39 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
jofors;8407 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.
jofors
#7 Posted : Thursday, March 17, 2016 10:05:11 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/7/2016(UTC)
Posts: 5
Location: Sweden

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
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
Remco
#8 Posted : Thursday, March 17, 2016 10:35:26 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
1 user thanked Remco for this useful post.
jofors on 3/17/2016(UTC)
jofors
#9 Posted : Thursday, March 17, 2016 12:31:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/7/2016(UTC)
Posts: 5
Location: Sweden

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
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.
1 user thanked jofors for this useful post.
Remco on 3/17/2016(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.062 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download