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

Notification

Icon
Error

v2.25, tests fail, indicate file not present
MikeWard
#1 Posted : Tuesday, August 9, 2016 2:49:30 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Upgraded from 2.23 to 2.25. Several tests fail that passed in 2.23. One example of a failed test:

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\mike\AppData\Local\NCrunch\15556\4\PortalTests\bin\Debug\assets\subject-view-toxicities.csv'.

When a check the folder the assets folder is not in the Debug folder, it's in the bin folder.

v.2.25

For reference here is folder when running v2.23

v2.23

Using VS 2015, latest patches, Windows 10 Anniversary.
Remco
#2 Posted : Tuesday, August 9, 2016 10:37:46 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.

v2.24 included a change in how copied resource files are handled. Prior to v2.24, NCrunch would attempt to infer where the file should be copied and it would copy the file itself using its own logic. This caused some problems with files using a 'Link' property or that had their target directory adjusted through other build steps. Consequently some files were landing in the wrong place.

Under v2.24 (and v2.25), the target copy dir from files is now taken directly from MSBuild, so it should actually be the same as where MSBuild normally places it.

Can you confirm where MSBuild deposits the file if you build it in your foreground solution? Does the file use the 'Link' property?
MikeWard
#3 Posted : Wednesday, August 10, 2016 12:51:30 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
The files show up in the expected folder when building. The output path for the solution is "bin/" and not "/bin/Debug". Maybe that has something to do with it. CSPROJ file below:

http://expirebox.com/dow...012f97e74b475304bc8.html
Remco
#4 Posted : Wednesday, August 10, 2016 10:34:01 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)
Thanks for sharing the sample project. Using this, I've had a go at trying to build a use case to reproduce this issue. Unfortunately, it seems that no matter what I try, the file always seems to end up in the right place (assets\filename). There must be something I'm missing here.

Is there any chance you can build a full sample solution you can share with me?
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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download