Executing Tests With a SqlCe Database
I created an Mspec build step that will run tests against a sqlce database. Currently the VS solution copies the sqlce database to the bin/Release folder. However teamcity expects the database to be in the the checkout directory. Ideally, I would prefer not to need to copy the file to the checkout directory. Is there a simplier solution? e.g. changing the working directory of the test execution.
Aeden
Please sign in to leave a comment.
Aeden,
No working directory is supported so far in .Net test runners. You are welcome to file a feature request into our tracker.
However, you might consider making your tests a bit more robust and not depend on working directory. e.g. treat relative paths based on .dll location directory, or allow to set path to test data via environment variable, etc.