I thought I should look if I could find time to do some enhancements to the migratordotnet open source project. To get started with the coding I had to do some things; this is my log of how to get everything building and testing against a local SQL Express installation.
First off, I had to fetch the latest source, the url can be found here.
Then, to get the compile to succeed, I had to create a file in the root called local.properties and let it have the contents in the file local.properties.example. To make sure that I would test only using SQL Express, I changed the property tests.exclude like this:
<property name="tests.exclude" value="Oracle,Postgre,MySql,SqlServerCe"/>
When this was done, I could compile the project by running the build.bat file.
In the local.properties file, the property tests.app.config points to a file called local.config, so I had to create that one. In $root/src/config I copied the app.config and renamed the copy to local.config. I then changed the connection strings for the three SQLServer types, I set it to migratordotnet_test instead, to get descriptive names. I then proceeded to create that database in my local SQL Express installation.
After I did all of this, I was able to do a successful 'build test'.
Technorati Tags:
ThomasL,
Migrations