Forum member

samholder

100 posts

Posts by samholder

  1. Ensuring serial execution across grid nodes

    We have some tests which use a central DB. When I use the [Serial] attribute and just run the tests on my local machine then the tests run fine. However if I enable the grid then I get intermittent failures because of conflicts in the DB (which running serially is designed to solve - not ideal I kno…

  2. Allow parallel execution setting with grid nodes

    Awesome, thanks for the quick reply!

  3. Allow parallel execution setting with grid nodes

    If we are running with the console runner and several grid nodes does the setting for allowing parallel execution run all the tests absolutely sequentially, using different nodes, or does it run sequentially on each grid node, but in parallel on the different nodes? If its not the latter is there…

  4. How can I check if the grid nodes are being used in a console test run?

    Cheers Remco, Yeah adding the logging pointed out the issue, the console tool had been installed a while ago and so was a different version from the grid node server, so ncrunch didn't run them. Problem solved and tests are running in parallel nicely now! cheers again for an excellent tool!

  5. How can I check if the grid nodes are being used in a console test run?

    Thanks Remco, So it seems that all my tests are running locally then, so I suppose the next question is why? I checked the ncrunch solution config checked out on the build server and it has the node config values in there. The grid nodes are used successfully in the local solution but there was o…

  6. How can I check if the grid nodes are being used in a console test run?

    Hi, We have just set up a couple of grid nodes and enabled the build server to use ncrunch console to run the tests. I created the config in VS and checked it in, but I don't think the tests are running on the grid nodes. At least I didn't any evidence in the build log in teamcity. Is there some …

  7. Teamcity test failed notification error

    ok, so couldn't do it in the morning, but got a chance to look at this last night and it seems that updating to 2.13 fixes my issue, although I seem to get two failed tests instead of one. one is called something like MyTest/* and the other is MyTest/MyActualTest, but I'm happy with this.

  8. Teamcity test failed notification error

    Yeah I'm on 2.12 I think. I'll update in the morning and get back to you. Thanks.

  9. Teamcity test failed notification error

    Hey Remco, There seems to be a slight problem with the Teamcity notification integration. if my tests throw an exception then I don't get any report of an individual test failure, it tells me that they all passed, but the process exited with code 2 (which means tests failed). It seems that the da…

  10. NCrunch console doesn't run each test in its own process.

    I don't have a solution configuration checked in to source control, but adding one has allowed the tests to run in parallel. Thanks for the tip. I'd expected the global setting to be used if none existed, but I assume that it has defaulted to 'false' as none was available

  11. NCrunch console doesn't run each test in its own process.

    Hi Remco. Thanks for the response. I have been able to restore the 'each test usijng its own database' situation now, by doing both things suggested above (using the Isolated attribute on the entire assembly, and setting the guid in each test setup. I can probably remove the isolated attribute no…

  12. NCrunch console doesn't run each test in its own process.

    Thanks for the quick reply Remco. I was under the (possibly incorrect) assumption that each test was run completely isolated so any static properties would be per test. I have a static field: public static Guid DbId = Guid.NewGuid(); or similar and this field is used to generate the name of…

  13. NCrunch console doesn't run each test in its own process.

    I am seeing some different behaviour between the console and the VS plugin I think. I have class which creates a temporary database for each test. This class simply has a static id for the db which is a guid and relies on the fact that NCrunch runs each test in its own process to ensure that the gui…

  14. NCrunch console global config instructions

    Cheers! I'm not going mad then!

  15. NCrunch console global config instructions

    The instructions for setting up the global config for NCrunch Console say I should use a v2_globalconfig.crunch.xml file from an existing machine, but I can't find this file anywhere, on any of the machines I've got NCrunch installed on. I have a file globalconfig.crunch.xml. Is this the file I sh…

  16. Typescript tests which reference typescript files in other projects cause build to fail

    Thanks Remco. Disabling the Typescript compilation when NCrunch is resident ended up being the solution I went for. Works fine.

  17. Typescript tests which reference typescript files in other projects cause build to fail

    I have a problem with tests written in typescript which reference other typescript classes (those under test) when the classes under test are in a different project. for example I have a solution which contains Project A and Project A.Tests. The solution has this structure: A -Scripts -…

  18. Engine execution exception when debugging through Specflow tests

    Say I have some specflow tests and I start one wit the debugger and have a breakpoint in the code (not in the specflow test). When the break point is hit if I step over until eventually control returns to the specflow test then I almost always get an EngineExecutionException at the point the debugge…

  19. Can not build project when it uses a specflow plugin to generate NCrunch test attributes

    Hi. Ok since restarting VS I can't seem to recreate the issue, so I'll put this down to something wierd with specflow and forget about it until it comes back. I've asked a couple of questions about creating a specflow generator which supports NCRunch attributes on the specflow mailing list, but …

  20. Can not build project when it uses a specflow plugin to generate NCrunch test attributes

    Thanks Remco, I'll post a zip of my current solution when I get home tonight. Its not too large :).