Question

The Redgate tool SQLTest for SQL unit testing now offers the ability to add tests from SQLCop however the Redgate tool only comes with few of those tests prebuild.

Since tests are just stored procedures I am sure somebody has implemented more of those tests.

Are you willing to share? Anyone?

Was it helpful?

Solution

I wrote SQLCop. I've been working with the fine folks over at Redgate. Originally I provided 5 (or so) tests as a proof of concept. Since then, I have also provided the remaining tests that are included with SQLCop. You should expect the remaining tests to be included in their next release of SQL Test.

OTHER TIPS

I've had SQLCop-type tests on my list of things I should get round to implementing, but have thus far only really implemented some 'test coverage' tests, which are pretty specific to our naming conventions here.

I do note that SQL Test is a preview product from Red Gate, so hopefully there will be more tests in the full release. From reading http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/sqlcop-integration-with-red-gate (and a couple of comments on the below forum link) it looks promising. EDIT: George's comment above confirms this.

You could consider logging the request at the forum that Red Gate link to from their website for feedback - http://sqltest.uservoice.com/forums/140716-sql-test-forum

If I do get some more generic tests written soon for my own purposes, I'll certainly share them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top