Code Monkey home page Code Monkey logo

Comments (6)

z342526265 avatar z342526265 commented on June 11, 2024

同求

from 19wu.

nightire avatar nightire commented on June 11, 2024

@Ival 我推荐两个资源吧。

第一个是书,The RSpec Book,这本书最重要的意义就在于介绍测试的理念,特别是针对各种问题如何编写相应测试代码的思路。

第二个是RSpec官方文档,这个文档本身就是 Acceptance Test 生成的文档,介绍了很多真实的用例,而且由维护者亲自更新,一直保持最新的测试手法。

from 19wu.

 avatar commented on June 11, 2024

学开发敏捷之道4版的时候,书上有介绍自带的测试功能,单元测试、功能测试、集成测试。还需要再去学习Rspec,是什么原因呢?

from 19wu.

nightire avatar nightire commented on June 11, 2024

@leonkaiyu 你用过 RSpec 就知道了,TestUnit 能把人写到手酸……

BTW,既然读过敏捷,一定还记得发邮件那一章讲的集成测试吧?整整一页的代码就为了测试下订单发邮件这个场景……现在想想都不寒而栗

不过话说回来,新手应该经历一下这样的过程,以后写测试心里会比较踏实。

from 19wu.

 avatar commented on June 11, 2024

确实,我跟着书上例子做的时候就觉得那个测试维护起来很麻烦。迭代了新功能,功能代码很少错误,全部是测试代码的错误,哎!既然你这样说,那么我去看看Rspec是不是真的简化便捷很多?

from 19wu.

Ival avatar Ival commented on June 11, 2024

感谢@nightire 提供的资料,太需要了;
不知道还有人能推荐下不,多多益善!

from 19wu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.