检测 .NET 程序集以捕获单元测试
我想自动检测 .NET 程序集,以便记录对某些函数的调用和返回的结果,作为从整个系统测试创建单元测试的一种方法。
这如何实现?
I would like to automatically instrument a .NET assembly so that calls to certain functions and the returned results are logged as a means of creating unit tests from whole system tests.
How might this be accomplished?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您正在描述 Pex,它确实支持 F# (尽管我'我见过一些帖子,表明它有时会与 F#、C# 或 VB 混淆)。
实际上, PostSharp 听起来可以用来实现更接近您所描述的内容。
It sounds like you are describing Pex, which does support F# (though I've seen posts which indicate it sometimes gets confused with F# vs. C# or VB).
Actually, PostSharp sounds like it could be used to achieve something closer to what you are describing.