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

Notification

Icon
Error

5GB of dataset needed by unit tests
devdept
#1 Posted : Sunday, February 17, 2019 9:18:46 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 53
Location: Italy

Was thanked: 2 time(s) in 2 post(s)
Hi There,

Yes, most of our unit tests need to load data files and perform tests against them. The data file folder size is beyond 5GB and I don't believe it's a good idea to copy everything to NCrunch workspace at each run.

Should I try or is there a more convenient way to access these files? Tests are failing because the following path is altered by NCrunch as the one below:

C:\Users\Alberto\Source\Workspaces\testSuite\Drawings\Step\ticketPirelli.STEP

C:\Users\Alberto\AppData\Local\NCrunch\26832\12\UnitTesting\bin\TestSuite\Drawings\Step\ticketPirelli.STEP

Thanks,

Alberto
Remco
#2 Posted : Sunday, February 17, 2019 9:52:57 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,974

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi Alberto,

For resources of this size, copying to workspaces is not recommended. You'll probably run out of disk space if you have too many runner processes.

Instead, try using the NCrunchEnvironment.GetOriginalSolutionPath method to establish the original path of your solution on disk, then reference the files from there.

You can use the #if NCrunch to avoid breaking your code for non-NCrunch execution.
devdept
#3 Posted : Monday, February 18, 2019 9:53:34 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 53
Location: Italy

Was thanked: 2 time(s) in 2 post(s)
Resolved, one project had the Configuration = RELEASE missing.

Thanks!

Alberto
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