`
peryt
  • 浏览: 55292 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论
  • waiting: 既然都指定了dataType为'script'那就不必特别在b ...
    jQuery

8 what test framework should you use?

 
阅读更多

for integration test, i have no prefer between the default Test:Unit 

and 

Rspec.

 

just stick to one framework inside a project, no need to mix the two in one project.

 

A second option is Cucumber, which works nicely with RSpec and allows the definition of plain-text stories describing application behavior. Many Rails programmers find Cucumber especially convenient when doing client work; since they can be read even by non-technical users, Cucumber tests, or “scenarios”, can be shared with (and can sometimes even be written by) the client. Of course, using a testing framework that isn’t pure Ruby has a downside, and I find that the plain-text stories can be a bit verbose and (cu)cumbersome. Since we don’t have any client requirements in Rails Tutorial, and since I strongly prefer a pure-Ruby testing approach in any case, we’ll stick to RSpec integration tests in this book. Nevertheless, I suggest taking a look at some Cucumber tutorials to see if it suits you.

分享到:
评论

相关推荐

    Getting Started with Twitter Flight

    Learn what separates Flight from other frameworks, why Flight was created, and why you should use it in your next project. Discover the power of Flight’s component-based architecture and use mixins, ...

    beginning VisualBasic2010(英文版)入门必读

    Once we′ve taught you the basics of creating working applications (creating the windows and controls, how your code should handle unexpected events, what object–oriented programming is, how to use ...

    apktool documentation

    After you find a framework file you could pull it via adb pull /path/to/file or use a file manager application. After you have the file locally, pay attention to how Apktool installs it. The number ...

    cisco_router_performance_field_guide.zip

    After that, I describe for you the case study that is the framework for the book. This includes background of FutureTech, Inc., the network layout that the company has, and the technologies you are ...

    Building.RESTful.Python.Web.Services.epub

    What You Will Learn Develop complex RESTful APIs from scratch with Python combined with and without data sources Choose the most appropriate (micro) framework based on the specific requirements of a ...

    BobBuilder_app

    Embedded: You can use RaptorDB inside your application as you would any other DLL, and you don't need to install services or run external programs. NoSQL: A grass roots movement to replace relational...

    vs 2005 10款插件

    By writing tests before you write code, you identify the exact behavior your code should exhibit and, as a bonus, at the end you have 100 percent test coverage, which makes extensive refactoring ...

    Rails.Angular.Postgres.and.Bootstrap.2nd.Edition

    You should have some experience with basic Rails concepts and a cursory understanding of JavaScript, CSS, and SQL, but by no means need to be an expert. You'll learn how to install Postgres on your ...

    Java邮件开发Fundamentals of the JavaMail API

    The version of the JavaMail API you want to use affects what you download and install. All will work with JDK 1.1.6+, Java 2 Platform, Standard Edition (J2SE) version 1.2.x, and J2SE version 1.3.x....

    Python安装包version 3.1.5

    you should use "make frameworkinstall" to do the installation. Note that this installs the Python executable in a place that is not normally on your PATH, you may want to set up a symlink in /usr/...

    Implementing.Domain.Specific.Languages.with.Xtext.and.Xtend.2nd.Ed

    What You Will Learn Write Xtext grammar for a DSL; Use Xtend as an alternative to Java to write cleaner, easier-to-read, and more maintainable code; Build your Xtext DSLs easily with Maven/Tycho and ...

    Killtest 分享000-048 题库

    - **问题**:From which framework class does an <<active>> object inherit the execute() operation? - **选项**: - A. OMEvent - B. OMThread - C. OMTimeout - D. OMReactive - **答案**:B. OMThread ...

    C# Game Programming Cookbook for Unity 3D - 2014

    .............................................8 2. Building the Core Game Framework 9 2.1 Controllers and Managers............................................11 2.1.1 Controllers..........................

    odoo themes

    **Note:** Odoo's team has designed a framework that is both powerful and easy to use. There is no need to learn special syntax to utilize this set of tools. **Important Tip:** If you always think and...

    Seamless R and C++ Integration

    New development should always use this Rcpp package instead. Other usage examples are provided by packages using Rcpp. As of September 2016, there are 759 CRAN packages using Rcpp, a further 76 ...

    bds.en.iso.14982.2009

    **Use:** Users of the machinery should also be aware of the EMC aspects to ensure safe and effective operation. This may involve training on how to use the machinery properly, understanding the ...

Global site tag (gtag.js) - Google Analytics