Build/Test Issues

NCrunch "Additional files to include" can't see all files in directory

Started by CreepyGnome on 4,769 views

Greetings,

I am using NCrunch for Visual Studio 2013 v2.23.0.2.

When I try to tell NCrunch to include additional files it can't see all the files in a directory.
[list=1]
  • Go to General Settings > [Specific Project] > General > Additional Files to Include
  • Open the popup dialog
  • Click Add Files(s)...
  • Navigate to a folder with the file needed
  • It is missing in the list

  • However when I go in Windows Explorer outside of NCrunch the file is there just fine. In NCrunch I can see most of the files that are above and below it sorted alphabetically but not the one I want. There are others missing too only in NCrunch.

    I checked the filter on the Open dialog in NCrunch and it is set to All files (*.*). This view shouldn't be filtering out anything. I also checked the security settings and they are 100% the same as the files that NCrunch can see. I checked all the other file attributes and settings and nothing is different from the other files it can see.

    Edited

    Hi,

    Thanks for sharing this.

    This is very, very strange. The popup dialog used by NCrunch is the same standard OS file/directory selector used by almost every other application on the windows system (via System.Windows.Forms.OpenFileDialog). From my understanding, I believe it is integrated with Windows Explorer itself.

    Do you have any history of strange behaviour on your file system? It may be worth running a scan to check for consistency.

    Note that it is also possible to add files manually without using the popup dialog. I would suggest using this if the popup is not behaving as it should be. However, I have a feeling that this is a much deeper level problem on your system that may warrant further investigation.
    No it is not my system, this is only happening in the dialog provided via NCrunch. Also when I paste in the full path to the file in the manual area it gives me the following error:


    Invalid Expression
    The specified expression is invalid. Expressions must be the relative path of an existing file or directory, with wildcards included as necessary.


    So it is expecting a relative path not an explicit path, which is what I am providing. What would it be relative from? The project? The solution? NCrunch install lcoation?

    I have tried popup dialog for files system from other applications including Visual Studio and it can see the file, and as I already explained Windows Explorer can see it, and the file properties, including security settings, of the missing files in your dialog are exactly the same as the ones it can see.

    Just to let you know I shouldn't have to do this in the first place. The only reason I was trying to do this is because NCrunch does something different than every other test running I use as they all work. That is when a C# library needs a native library that it is referencing for one reason or another, PInvoke, etc. That the NCrunch test runner fails with the error that it cannot load a module and lists the native dll as the module it cannot load. The C# library I am using is one provided by Microsoft and it depends on native Microsoft libraries as well.

    The file it cannot load that Resharper Test Runner can, and NUnit test runner can and obviously the software application it is written into can, is in the systems path for all users as it is located in the Windows System 32 folder.

    So I wouldn't even care about this additional files to include if NCrunch would allow for this to work, as we shouldn't really need to do this especially in this case. Just noticed this odd bug where its is filtering multiple files from the System 32 folder that no other explorer window or application open dialog filters.

    Post a reply

    Log in to reply.