Forum member

strike2867

8 posts

Posts by strike2867

  1. File not copying

    [quote=Remco;4979]Argh! Worst possible scenario. I suspect this is sequence related then. It is probably dependent upon other tests that have been executed before it in the NCrunch pipeline. I suggest parking the issue until it happens again. There is a high probability that it will come back.…

  2. File not copying

    [quote=Remco;4977]Ok, so somehow, NCrunch isn't detecting this attribute. Can you confirm whether the namespace for the attribute is Microsoft.VisualStudio.TestTools.UnitTesting.DeploymentItemAttribute? Also, is there any chance you could submit a bug report right after you've run the test? Perha…

  3. File not copying

    [quote=Remco;4975]Sorry - I thought I'd also just confirm where the DeploymentItem attribute is declared in your code. You say that this is in the fixture itself - in this do you mean the class declared with [TestClass]? Is there any inheritance involved?[/quote] The full declaration for the te…

  4. File not copying

    [quote=Remco;4972]Right. I think we're getting closer here. MSTest in VS2012 has a legacy mode that it activates when making use of a testsettings file. The testsettings file allows the test adapter to perform its own shadow copying, creating the 'Deploy_***** DATE\Out\' directories that are us…

  5. File not copying

    [quote=Remco;4970]I've built a small test environment making use of a file in the same way as above, but strangely, it seems to work without problems for me when attempting to find the file in the same directory as the test assembly. Would you be able to show me how you are looking for this file? …

  6. File not copying

    [quote=Remco;4968]Hi, thanks for reporting this issue. Can I just confirm a few things about your setup? This will help me to reproduce and hopefully solve the issue: - Is this .js file included in your test project, or a project that is referenced by your test project? - Does your code expe…

  7. File not copying

    File doesn't seem to copy correctly during build. When using the Visual Studio Test Explorer the test passes and the file is copied correctly, but NCrunch doesn't copy it and the unit test fails. In the test project file is declared as <ItemGroup> <Content Include="..\SECFillingsTool\Scripts…

  8. Code coverage results are strange when using conditional

    Using the following test code public int TrySomething(int x) { int z = x > 5 ? 2 : 3; return z; } [TestMethod] public void TestTrySomething() { var actual = TrySomething(10); Assert.AreEqual(2, actual); } VS code coverage shows it as 80% covered in VS 2012 but we ge…