Build/Test Issues

5GB of dataset needed by unit tests

Started by devdept on 1,736 views

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
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.
Resolved, one project had the Configuration = RELEASE missing.

Thanks!

Alberto

Post a reply

Log in to reply.