Has anyone had any success in unit testing SQL stored procedures?

前端 未结 16 855
孤街浪徒
孤街浪徒 2020-12-12 17:38

We’ve found that the unit tests we’ve written for our C#/C++ code have really paid off. But we still have thousands of lines of business logic in stored procedures, which o

16条回答
  •  自闭症患者
    2020-12-12 17:51

    We unit test the C# code that calls the SPs.
    We have build scripts, creating clean test databases.
    And bigger ones we attach and detach during test fixture.
    These tests could take hours, but I think it`s worth it.

提交回复
热议问题