楼主: jieforest

SpringSource发布 Grails 1.2 最终版

[复制链接]
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
31#
 楼主| 发表于 2009-12-24 22:51 | 只看该作者
Testing infrastructure improvements

Non JUnit providers

The test running mechanics have been completely overhauled, opening the door to all kinds of testing possibilities for Grails applications. Previously it was very difficult for non JUnit based tests to be deeply integrated into Grails (e.g grails-easyb). Expect to see testing plugins taking advantage of this new infrastructure.

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
32#
 楼主| 发表于 2009-12-24 22:51 | 只看该作者
Test phase and type targeting

There is now a more sophisticated mechanism for targeting the exact test you wish to run. Previously, it was only possible to target test phases but it is now also possible to target test types .

You target particular test phases and/or types by using the following syntax:

grails test-app «phase»:«type»
grails test-app unit:spock    // run ‘spock’ test type in ‘unit’ test phase

Either side is optional, and it's absence implies all …

grails test-app unit:    // run all types in ‘unit’ phase
grails test-app :spock    // run ‘spock’ type in all phases

It can be used in conjunction with test targeting…

grails test-app unit: SomeController   // run all test for ‘SomeController’ in the ‘unit’ phase

And is additive…

grails test-app unit: integration:    // run all test types in the ‘unit’ and ‘integration’ phases

Legacy phase targeting syntax is supported for backwards compatibility

grails test-app --unit    // equivalent to grails test-app unit:

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
33#
 楼主| 发表于 2009-12-24 22:52 | 只看该作者
Clean testing

You can can force a clean before testing by passing -clean to test-app:

grails test-app -clean

使用道具 举报

回复
论坛徽章:
277
马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11版主9段
日期:2012-11-25 02:21:03ITPUB年度最佳版主
日期:2014-02-19 10:05:27现任管理团队成员
日期:2011-05-07 01:45:08
34#
 楼主| 发表于 2009-12-24 22:52 | 只看该作者
Echoing System.out and System.err

By default, grails does not show the output from your tests. You can make it do so by passing -echoOut and/or -echoErr to test-app:

grails test-app -echoOut -echoErr

使用道具 举报

回复
论坛徽章:
6
2017金鸡报晓
日期:2017-01-10 15:39:05技术图书徽章
日期:2020-07-22 09:44:5420周年集字徽章-20	
日期:2020-10-28 14:31:2120周年集字徽章-周
日期:2020-10-28 14:51:0420周年集字徽章-年	
日期:2020-10-28 15:00:35
35#
发表于 2010-1-6 13:26 | 只看该作者
版主你不能整到一个文件里面:(

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表