Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch "Additional files to include" can't see all files in directory
CreepyGnome
#1 Posted : Wednesday, June 8, 2016 10:12:57 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/21/2012(UTC)
Posts: 22
Location: Arizona

Thanks: 2 times
Was thanked: 5 time(s) in 5 post(s)
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.

  1. Go to General Settings > [Specific Project] > General > Additional Files to Include
  2. Open the popup dialog
  3. Click Add Files(s)...
  4. Navigate to a folder with the file needed
  5. 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.
Remco
#2 Posted : Wednesday, June 8, 2016 11:15:05 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
CreepyGnome
#3 Posted : Thursday, June 9, 2016 3:10:53 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/21/2012(UTC)
Posts: 22
Location: Arizona

Thanks: 2 times
Was thanked: 5 time(s) in 5 post(s)
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:

Quote:

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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.069 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download