Forum member

GreenMoose

511 posts

Posts by GreenMoose

  1. ConsoleTool: System.AccessViolationException: Attempted to read or write protected memory.

    Ok thanks, this case should not have been involving any grid nodes though, and it didn't re-appear after upgrading (usage of NCrunch with this heavy project on TeamCity is still in the "experimental" phase so it isn't executed very often).

  2. ConsoleTool: System.AccessViolationException: Attempted to read or write protected memory.

    [NCrunch Console Tool v3.9.0.1] Got this error (NUnit tests) on TeamCity today (am about to upgrade to 3.10.0.6 in order to keep versions in sync with my vstudio2017 version). [code=plain] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---…

  3. .net core app vs .net 4.5 for test projects, performance difference?

    Hi. If I can choose a test project to be targeting .net core or .net framework (e.g. test .net standard libraries), are there any benefits choosing the one over the other, NCrunch wise ? Thanks.

  4. Parameterized NUnit tests run only once

    [quote=Remco;10687]Hi, NCrunch should give you a warning about this with a link to the documentation page explaining this issue - [url=http://www.ncrunch.net/documentation/considerations-and-constraints_unique-test-name]http://www.ncrunch.net/documentation/considerations-and-constraints_unique-te…

  5. ExplicitAttribute not respected on TestFixture

    Related question, is there a way to run explicit tests via the NCrunch console runner somehow?

  6. Multiple markers when renaming class with ReSharper

    I have tried with 3.10.0.2 / vs2017 above and it seems to have resolved the issue for me! What I noted when trying to produce a stable repro before upgrading are: * It only happened if I had Solution Explorer visible. * It only happened when I rename file via RS (Ctrl+R,Ctrl+R), renaming the fi…

  7. "You cannot have two engine modes with the same name" blocks UI

    [3.9.0.1] Scenario: 1) Create an engine mode "Foo", shared with team, this file is "committed" to scc. 2) You realize "Foo" should be local, mark it "for this solution, mine". Notice .ncrunchsolution gets "Foo" removed. 3) Close solution, re-add engine mode from scc by reverting pending change (…

  8. Multiple markers when renaming class with ReSharper

    FWIW, happens with me as well when I rename with v3.8.0.2 https://www.screencast.com/t/IP6Hl3HQMqXL I don't recall it happened previously, the recent changes I made are updating vstudio2017 and NCrunch. (vstudio version info: [quote] Microsoft Visual Studio Enterprise 2017 Version 15.2 (26430…

  9. Engine mode overriding custom environment variable, override 1 and not all?

    [v3.7.0.4] When I set a custom environment variable in engine mode, isn't it supposed to override only the specified one? As far as I can tell all my 7 items are overridden with 1 item? See https://www.screencast.com/t/cjh7OUJJh (this makes my tests fail since they need values from the other on…

  10. NCrunch attributes on interface?

    Great. New feature request added at https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/19224088-introduce-ncrunch-testcontext-or-similar-to-get-in .

  11. Configuration/UseBuildConfiguration not supported by console tool?

    [NCrunch Console Tool v3.6.0.2] I'm trying to verify I am building in release mode, but nothing seems to work [quote] C:\Code>ncrunch .\My.sln -Configuration Release ERROR: Configuration setting 'Configuration' was not found C:\Code>ncrunch .\My.sln -UseBuildConfiguration Release ERROR: Pr…

  12. NCrunch attributes on interface?

    Ok thanks. As an alternative approach, maybe it is possible to have something like NUnit's TestContext e.g. NCrunch.TestContext.CurrentTest.Attributes or similar? Then one could take actions depending on existence of them (in my case fail the test if the actual tests are not having required attri…

  13. NCrunch attributes on interface?

    Hi. NCrunch does not seem to care if an attribute is used on interface method, but only when used on the test method itself. Is this by design? Scenario: I have 2 test projects, 1 for external system HTTP tests and 1 for local HTTP tests. In order to avoid duplicating the tests I have an inter…

  14. Override [ExlusivelyUses] for specific test?

    Hi. Is there a way I override the ExclusivelyUses so NCrunch run these tests in parallell, even though base class has ExclusivelyUses set? My scenario is this: I have a lot of integration tests dealing with database and they derive from a base fixture e.g. "DatabaseTest". To avoid deadlocking…

  15. Isolated attribute not always respected

    [v3.7.0.4] I use IsolatedAttribute on fixture level to ensure my tests are all running inside same process (I use a login routine once during setup, which I don't want to redo more than once for all tests), but it seems every other run it runs the 2 tests in 2 different projects? Repro: [quote]…

  16. NCrunch console on TeamCity, counting test vs Fixture

    Ok, is there a way I can disable NCrunch TeamCity detection so I can set build config to only parse the results from the XML file? (The other workaround I see is to use a chained build setup where cfg1=ncrunch and cfg2=only purpose is to parse the XML file, but that feels a bit overly complicated…

  17. NCrunch console on TeamCity, counting test vs Fixture

    [quote=Remco;10232]This is actually what NCrunch already does, but it still needs to represent the fixtures in the log. ... So NCrunch reports tests using the syntax you've described above, and fixtures in addition to this. .[/quote] Ok this is weird, when I look in the build log, I don't see a…

  18. NCrunch console on TeamCity, counting test vs Fixture

    Ok, so if I understand correctly according to https://confluence.jetbrains.com/display/TCD10/Build+Script+Interaction+with+TeamCity this can technically be solved if NCrunch uses something like: [quote] ##teamcity[testStarted name='testName' captureStandardOutput='<true/false>'] <here go all the…

  19. Tests re-executing if modifying Tests window layout

    Weird, I sent my local log via email if that sheds any light on the issue. The steps I do are: 1) Ensure engine mode with test auto executed filter: "has not been run or is failing" is selected, with 1 failed test in test window 2) Modify Name col width (or change sort order by clicking on column …

  20. NCrunch console on TeamCity, counting test vs Fixture

    [NCrunch Console Tool v3.6.0.2] So in a new project I have 2 tests and TeamCity reports 4 tests when using NCrunch. Looking in the build log I see: [quote] [14:07:43] : [Step 2/2] [14:07:43.3453-LocalTestExecutionTask-25] Calling into task runner to run 2 tests: [14:07:43] : [Step 2/2]…