以测试驱动的方式开发的开源项目有哪些很好的例子? [英] What are some good examples of open source projects developed in a test-driven fashion?

查看:26
本文介绍了以测试驱动的方式开发的开源项目有哪些很好的例子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了具有良好质量测试的开源项目,但我想问一些不同的问题.

I found Open source projects with good quality tests but I wanted to ask something a bit different.

我很难想象如何使用 TDD 实践构建生产代码,特别是对于网络数据库驱动的应用程序,其中大量功能依赖于一个或多个外部系统.我已经讨论过的两种主要策略是将代码与相关系统解耦并使用模拟.但是,我的直觉是,正确地执行任何一项操作也会很复杂且容易出错.

I'm having a hard time visualizing how to build production code using TDD practices, particularly for networked database-driven applications where big chunks of functionality are dependent on one or more external systems. The two main strategies I've seen discussed for accomplishing that are decoupling code from the systems in question and using mocks. However, my intuition is that doing either one properly would also be complex and error-prone.

我想看看一些真实的代码,这些代码是从头开始使用测试驱动的开发实践构建的.这样的项目从一开始就必须处理这些问题,我认为查看结果会很有启发性.有没有正面或负面的例子?

I'd like to take a look at some real-life code that was built using test-driven development practices from the ground up. Such a project would have had to deal with such issues from very early on, and I think looking at the results would be instructive. Any examples out there, whether positive or negative?

推荐答案

想到了一些测试框架...

Some testing frameworks come to mind ...

  • JUnit
  • FitNesse
  • RSpec (Though of course this was BDD rather than TDD!)

这篇关于以测试驱动的方式开发的开源项目有哪些很好的例子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆