Remco;1555 wrote:Do you have any resource files that the SQL dependency makes use of but aren't included in your project file? You can quickly identify if this is the cause through the following:
1. Right click on the failed test in the tests window
2. Choose Advanced->Browse to workspace
3. Open an explorer window to your test project directory
4. Compare the files that exist between the explorer windows. Check specifically for resource files, binaries and non source files (since if source files were missing, your build will have failed)
If you have any files missing that are being used by the SQL dependency, you can add them using the 'Additional files to include' option under your NCrunch project level configuration.
Does this solve the issue?
Yeah this helps. My tests project correctly pulls in the native binaries for SQL CE. NCrunch doesn't copy those, I presume because they are referenced by the SQL CE managed DLL as opposed to directly from my project.
If I manually copy those files into the bin\debug of the workspace (after setting "Copy referenced assemblies to workspace" to true for all projects), the NCrunch tests start working.
The folder structure of where these DLLs are located is dictated by Nuget. The "packages" folder is a sibling of the "MyApp.Tests" project folder.
I need to include the folders and files under this root directory:
packages\SqlServerCompact.4.0.8852.1\NativeBinaries
Adding additional files takes a path. Can you provide an example of how I might add these files?