eclipse加入tomcat插件
2011-08-04 09:00
302 查看
Lettuce 是python开发的BDD(Behavior-driven-development)的框架。熟悉Ruby的人都知道,ruby世界的经典BDD框架应属Cucumber。而Lettuce相当于Cucumber的python版。查看Lettuce详细信息请参见http://lettuce.it/或http://github.com/gabrielfalcao/lettuce。
本着对新鲜事物的好奇(其实也不是新鲜事物,自己不懂就算新鲜咯
),便下了一个试玩。发现使用Lettuce在windows下做测试时,无法显示颜色。只是显示了一对代码。
写道
[1;37mFeature: Compute factorial [1;30m# \featur
[1;37m In order to play with Lettuce [1;30m# \featur
[1;37m As beginners [1;30m# \featur
[1;37m We'll implement factorial [1;30m# \featur
[1;37m Scenario Outline: Factorials of [0-4] [1;30m# \featur
[0;36m Given I have the number <number> [1;30m# \featur
[0;36m When I compute its factorial [1;30m# \featur
[0;36m Then I see the number <result> [1;30m# \featur
[1;37m Examples:[0m
无奈上网查,无果。后来找了一个可以在控制台下显示颜色的python库colorama。安装之后,修改lettuce\plugins\colored_shell_output.py文件,在文件头上加一行from colorama import init; init() 搞定。
看了一下init()的源码,发现只是给标准输出流,错误输出流加了一个包装器,对输出做了一些手脚。另外,在linux下不需要任何修改就可以显示颜色。
解决方法虽有些猥琐,但尚可使用。希望有知道正确解决方法的大蟒们不吝赐教。
本着对新鲜事物的好奇(其实也不是新鲜事物,自己不懂就算新鲜咯
),便下了一个试玩。发现使用Lettuce在windows下做测试时,无法显示颜色。只是显示了一对代码。
写道
[1;37mFeature: Compute factorial [1;30m# \featur
[1;37m In order to play with Lettuce [1;30m# \featur
[1;37m As beginners [1;30m# \featur
[1;37m We'll implement factorial [1;30m# \featur
[1;37m Scenario Outline: Factorials of [0-4] [1;30m# \featur
[0;36m Given I have the number <number> [1;30m# \featur
[0;36m When I compute its factorial [1;30m# \featur
[0;36m Then I see the number <result> [1;30m# \featur
[1;37m Examples:[0m
无奈上网查,无果。后来找了一个可以在控制台下显示颜色的python库colorama。安装之后,修改lettuce\plugins\colored_shell_output.py文件,在文件头上加一行from colorama import init; init() 搞定。
看了一下init()的源码,发现只是给标准输出流,错误输出流加了一个包装器,对输出做了一些手脚。另外,在linux下不需要任何修改就可以显示颜色。
解决方法虽有些猥琐,但尚可使用。希望有知道正确解决方法的大蟒们不吝赐教。
相关文章推荐
- 加入Tomcat插件到ECLIPSE中的方法
- eclipse中加入tomcat插件后不出现小猫图标
- eclipse中加入tomcat插件后不出现小猫图标
- eclipse3.7 安装tomcat插件
- Eclipse4.6(neno)手动配置Tomcat插件
- Eclipse与插件(tomcatPlugin Lomboz easyStruts)安装
- 【小C出品】应学员的要求,java实现基于eclipse插件杀死TOMCAT进程的代码
- Eclipse用Tomcat插件部署Java Web项目
- eclipse中加入jad插件的方法
- Eclipse中创建Web Maven Project并部署到Tomcat中(Maven 的Web Project加入另一个Maven Project依赖)
- Eclipse Helios 插件安装(tomcat插件)
- eclipse中tomcat插件出现OutOfMemoryError错误的解决办法
- eclipse中安装tomcat插件
- 将Eclipse的console插件加入到自己的RCP应用程序中
- eclipse 开发web程序,启动tomcat插件服务器的时候。部署目录在那里?
- win2000/XP下Eclipse与插件(tomcatPlugin Lomboz easyStruts)安装
- Eclipse Tomcat插件的配置, 及 Tomcat 的配置
- eclipse中Maven工程使用Tomcat7以上插件
- 如何加入tomcat这个服务器到eclipse中
- 安装Eclipse3.2,配置Tomcat,lomboz,PHP,JS插件