Jasmine Reporters

https://github.com/larrymyers/jasmine-reporters

Jasmine Reporters

Jasmine Reporters is a collection of javascript jasmine.Reporter classes that can be used with the JasmineBDD testing framework.

Right now the project is focused on two new reporters:

  • ConsoleReporter - Report test results to the browser console.
  • JUnitXmlReporter - Report test results to a file (using Rhino or PyPhantomJS) in JUnit XML Report format.

Usage

Examples are included in the test directory that show how to use the reporters, as well a basic runner scripts for Rhino + envjs, and a basic runner for PhantomJS (using PyPhantomJS and the saveToFile plugin). Either of these methods could be used in a Continuous Integration project for running headless tests and generating JUnit XML output.

Rhino + EnvJS

Everything needed to run the tests in Rhino + EnvJS is included in this repository inside the ext directory, specifically Rhino 1.7r2 and envjs 1.2 for Rhino.

PhantomJS, PyPhantomJS

PhantomJS is included as a submodule inside the ext directory. The included example runner makes use of PyPhantomJS to execute the headless tests and save XML output to the filesystem.

While PhantomJS and PyPhantomJS both run on MacOS / Linux / Windows, there are specific dependencies for each platform. Specifics on installing these are not included here, but is left as an exercise for the reader. The PhantomJS project contains links to various documentation, including installation notes.

Here is how I got it working in MacOSX 10.6 (YMMV):

  • ensure you are using Python 2.6+
  • install Xcode (this gives you make, et al)
  • install qt (this gives you qmake, et al)
    • this may be easiest via homebrew
    • brew install qt
  • install the python sip module
    • pip install sip # this will fail to fully install sip, keep going
    • cd build/sip
    • python configure.py
    • make && sudo make install
  • install the python pyqt module
    • pip install pyqt # this will fail to fully install pyqt, keep going
    • cd build/pyqt
    • python configure.py
    • make && sudo make install
posted on 2012-04-01 14:27  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/04/01/2428715.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值