且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将 TDD 与 Web 应用程序开发集成的***实践?

更新时间:2023-10-11 19:57:34

如果您适当地分离层,就可以实现单元测试.正如 Rob Cooper 暗示的那样,不要在您的 WebForm 中放置任何逻辑,而不是管理您的演示文稿的逻辑.所有其他的东西逻辑和持久层应该保存在单独的类中,然后你可以单独测试它们.

Unit testing will be achievable if you separate your layers appropriately. As Rob Cooper implied, don't put any logic in your WebForm other than logic to manage your presentation. All other stuff logic and persistence layers should be kept in separate classes and then you can test those individually.

为了测试 GUI,有些人喜欢 selenium.其他人则抱怨设置起来很麻烦.

To test the GUI some people like selenium. Others complain that is a pain to set up.