SQLCop tests for tSQLt

核能气质少年 提交于 2019-12-05 13:05:01

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/9898865/sqlcop-tests-for-tsqlt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!