Hi all,
I'm sorry to keep asking question about unit testing my own code against RavenDb 4 but hopefully this would be the last one :)
I'm not sure what I need to do on a CI server (eg. VSTS or AppVeyor) to get my unit tests to work. I know that:
- I need raven.server.exe Or raven.server.dll
- the updated docs have some really nice code that explains that it's trying to locate the exe/dll using env variables and if that fails, then some current directory attempts.
- my unit tests work great, locally .. when I fix the path to RavenDb 4.0 RC-40025, which i MANUALLY downloaded.
So, i'm wondering if this is what we have to do:
- create some powershell script that:
- downloads the specific version of ravendb 4.
- unzip that bad boy.
- add an env var .. which you then need to check in your custom locator class.
- profit!
is this the current practice about this?
if yes - then this should be added to the docs. (I can PR that, etc).
Side note: the code the MyRavenDbLocator isn't too bad. Something like that should be baked into the TestDriver library IMO. Documented so people know about the 'conventions' like the environment vars for localhost vs ci, etc. etc.
-le me-