How do I rename a tSQLt test class?

后端 未结 4 399
不知归路
不知归路 2021-01-03 02:20

I\'m developing a database using the Red Gate SQL Developer tools. SQL Test, the SSMS add-in that runs tSQLt tests, lacks a way to rename test classes.

I have a test

4条回答
  •  既然无缘
    2021-01-03 02:42

    Simplest is probably:

    EXEC tSQLt.RenameClass 'old test class name', 'new test class name';
    

    See the tSQLt docs for RenameClass

    It seems Red-gate have added that ability to SQL Test since this question was posted, but the raw SQL code is somehow leaner and cleaner (whether or not you use the excellent SQL Test)

提交回复
热议问题