Forum member

Ralf Koban

44 posts

Posts by Ralf Koban

  1. Code Analysis Errors from NCrunch tests

    Hi, The easiest way is to edit your project file. Search for the location of the StyleCop analyzers add-in and add " Condition="'$(NCrunch)' != '1'" " to the <ItemGroup> Eg. <ItemGroup Condition="'$(NCrunch)' != '1'"> <Analyzer Include="..\Solution\packages\StyleCop.Analyzers.1.1…

  2. nunit TestCase not working with ExpectedResult

    Hi, what happens if you remove the [Test] attribute? You already mark it as a test via the [TestCase] attribute. BR, Ralf

  3. NCrunch with NUnit3 lagging due to Analyse Assembly

    Hi, sorry for jumping in but another question is how you use Funnel. On my side I experienced issues that the NCrunch cache data gets "outdated" if I frequently only load parts of the solution. The reason for me seems to be that NCrunch gets rid of the information of the non-available project…

  4. How To Throw Custom Exception

    Hi, excuse me for jumping in. The issue is not related to NCrunch. It is (most probably) how you use/define the mocks. Your test defines a GetClientDetailQuery instance while your code creates another GetClientDetailQuery instance. So there are 2 different living instances hanging around. …

  5. Feedback about failing test in case the mouse hovers the > character

    Hi Remco, If the mouse hovers the > character beside the test, and the test fails, it would be nice to get the failing message for the test. This is probably a special situation as normally, if a test fails, and the mouse hovers the X, NCrunch shows the failing message as tooltip. However, if…

  6. NCrunch cache storage path on RAMDISK?

    Hi, some additional remarks from me. I also thought about that but decided against it, because of following reason. If you consider to put the file on a RAMDisk, you have to ensure that the RAMDisk's content gets stored before a re-boot of the machine. Otherwise, you'll end up with a lost c…

  7. System.InvalidOperationException. The thread must be STA

    Hi, seems you are using NUnit 3 where STAThread is no longer supported. Please use the Apartment state instead: <TestFixture> Public Class SearchResultPaserTests <Test> <Apartment(ApartmentState.STA)> Public Sub ParseMethodReturnsComboBoxItem() Dim srp As New SearchResultPase…

  8. Is there a way to visualize the test pipeline?

    Hi GreenMoose, I had similar gaps all over my tests and saw them regularly. I came to the conclusion that I completely overloaded my engine. My grid nodes have approx. 8 logical CPU cores and I had set the task capacity to 16 (so for each grid nodes I doubled the task capacity based on its log…

  9. Is there a way to visualize the test pipeline?

    Hi Remco, Thanks for the explanation. I was just curious about these steps as they showed up somehow regularly. For the moment I don't have the feeling that those gaps are big ones.

  10. Is there a way to visualize the test pipeline?

    Hi Remco, just updated to v2.19.0.4 and now I get the detailed performance information I was looking for. Very nice, it really helps me a lot. :) Nevertheless, I have a small question on that. Some steps show a "(not specified)" text, I'm not sure what this actually means. Could you provide me…

  11. Is there a way to visualize the test pipeline?

    Hi Remco, thanks for the explanation. Would it be possible to get the start time of each task in the test processing window? And would it be possible to export the content of the Processing tab into a CSV file? Actually, I don't care about how accurate the information really is, I would lik…

  12. Is there a way to visualize the test pipeline?

    Hi Remco, is there a way to get the test pipeline visualized? I would like to see which tests are run in parallel (even accross the grid), when they started / finished and how long they took. I would also like to see the compile/building time. The reason behind is that I have some longer ru…

  13. Allow to run the tests on the grid node while the foreground solution is still compiling

    Hi Remco, yes, that exceptional situation seems to be the situation I'm faced with (my local processor has a capacity of 12 tasks where 3 are used as fast-lane tasks). It would be nice if the NCrunch engine could be improved to handle that. Could be as you've said to not picking up tasks, or …

  14. Allow to run the tests on the grid node while the foreground solution is still compiling

    Hi Remco, NCrunch is set up to run all tests automatically. So it seems to happen that there are tests which are queued already in the processing queue to run locally but are not yet started when I start to compile. What I'm doing is following: - Open the solution - Wait until NCrunch has an…

  15. Allow to run the tests on the grid node while the foreground solution is still compiling

    Hi Remco, this is a follow-up on your comment on [url=https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/8252328-allow-to-run-the-tests-on-the-grid-node-while-the]my feature request[/url] on UserVoice. I'm not sure whether to place it here and whether this is an issue at …

  16. An option to disable parallel execution by NUnit categories?

    Hi mortan, I'm sorry for just jumping in. You don't need to reference the NCrunch.Framework.dll. Instead you can create your own attribute(s) (having the same names) and place it in that specific NCrunch.Framework namespace. We are doing this approach as well on our side as we also cannot refe…

  17. Excluding autogenerated code

    Hi, we are using a similar approach (generating classes via T4 templates). To exclude them from code coverage (not only NCrunch but also dotCover, MSTest, NCover, etc.), we add/generate the [ExcludeFromCodeCoverage] attribute to the generated classes. Maybe that suits you as well. BR, Ral…

  18. Analyse Assembly fails on NCrunch grid nodes but I can't see why

    Hi Remco, tested and works fine. :) Thanks

  19. Analyse Assembly fails on NCrunch grid nodes but I can't see why

    Hi Remco, yes, it seems that I'm experiencing this only with .NET 4.5.2 assemblies but not with .NET 4.0 assemblies. So the grid nodes can still run .NET 4.0 tests, but not the tests in that .NET 4.5.2 assembly. BR, Ralf

  20. Analyse Assembly fails on NCrunch grid nodes but I can't see why

    Hi Remco, after setting the Log verbosity to Detailed on one of the grid nodes, I see following reported: [12:43:47.3781-NodeProcessor-12] Launching task: Analysing PostSharpRepro [12:43:47.4111-NodeProcessor-12] Process could not be found in pool with signature matching: [ProcessSignature:…