我怎么能在Perl实现TDD? [英] How can I implement TDD in Perl?

查看:131
本文介绍了我怎么能在Perl实现TDD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用的mod_perl 以产生XML数据,稍后通过XSLT转换成HTML和数据库是MySQL中。我们的操作系统是Unix的。

We're using mod_perl to produce data in XML and later to be converted into HTML via XSLT, and the database is in MySQL. Our OS is Unix.

所以,我一直在阅读有关冷静和强大的 TDD 是如何在.NET,Java的使用所有可用的框架。我甚至已经测试 NUnit的前,我挺喜欢它。您可以一次编写测试,并使用它pretty多,直到永远。

So I've been reading about how cool and powerful TDD is in .NET, Java with all the available frameworks. I've even tested NUnit before and I kind of like it. You can write the test once and use it pretty much forever.

我想知道是否有实现TDD为我们的情况下,也用Perl一个简单的方法?

I was wondering if there is an easy way to implement TDD for our case too with Perl?

我想要做的就是有一些自动化的方式来管理我的单元测试,并能够轻松只需点击一下鼠标或东西运行单元测试。

What I want to do is to have some automated way to manage my unit test, and to be able to easily run the unit test with just one click or something.

我发现这个 href=\"http://www.extremeperl.org/bk/test-driven-design\">章是非常有用的,以及帮助我​​设计测试和最重要它是免费的:)

I've found this chapter on TDD to be very useful as well as helping me design the test, and best of all it's free :)

如果你能买得起它,然后得到这个
预定太: Perl的测试:开发人员的笔记本。这在某种意义上确实不错,它分解成所有我们需要做的潜在的东西,它在一个基于教程格式。

And if you can afford it then get this book too: Perl Testing: a developer's notebook. It's really good in the sense that it break down into all the potential stuff that we need to do and it's in a tutorial based format.

添加这里 Perl的测试参考卡的。

所以,现在我渴望寻找一些好的资源,.pm的,开放源码的Perl,我可以用它来更好地学习如何编写单元测试项目等任何人都可以推荐一些吗?

So now I'm eager to look for some good resources, .pm, open source Perl projects which I can use to better learn how to write unit tests, etc. Can anyone recommend some here?

推荐答案

这可能是有益的...

These might be helpful...

测试Vim中驱动开发用Perl

Test Driven Development with Perl in Vim

TDD用Perl - 第1集

TDD用Perl - 第2集 - 入门

TDD用Perl - 第3集(当兰斯获取时间写吧)

TDD with Perl - Episode 3 (whenever Lance gets around to writing it)

<击>测试/ Perl 5的维基 - 尤其是在mock对象和进一步的信息等环节部分的位(好像是解散)

这篇关于我怎么能在Perl实现TDD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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