Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 53 lines (40 sloc) 2.194 kb
2463157 @larrymyers README converted correctly to markdown syntax
larrymyers authored
1 # Jasmine Reporters
8ff5c50 @larrymyers started README content
larrymyers authored
2
dc26193 @larrymyers converted readme to markdown
larrymyers authored
3 Jasmine Reporters is a collection of javascript jasmine.Reporter classes that can be used with
00dec9b @bloveridge add info on PhantomJS / PyPhantomJS to README
bloveridge authored
4 the [JasmineBDD testing framework](http://pivotal.github.com/jasmine/).
8ff5c50 @larrymyers started README content
larrymyers authored
5
00dec9b @bloveridge add info on PhantomJS / PyPhantomJS to README
bloveridge authored
6 Right now the project is focused on two new reporters:
8ff5c50 @larrymyers started README content
larrymyers authored
7
dc26193 @larrymyers converted readme to markdown
larrymyers authored
8 * ConsoleReporter - Report test results to the browser console.
e0248d7 @bloveridge minor readme tweak
bloveridge authored
9 * JUnitXmlReporter - Report test results to a file (using Rhino or PyPhantomJS) in JUnit XML Report format.
fe58181 @larrymyers added jsdoc style comments to reporters, included usage details for r…
larrymyers authored
10
00dec9b @bloveridge add info on PhantomJS / PyPhantomJS to README
bloveridge authored
11 ## Usage
fe58181 @larrymyers added jsdoc style comments to reporters, included usage details for r…
larrymyers authored
12
00dec9b @bloveridge add info on PhantomJS / PyPhantomJS to README
bloveridge authored
13 Examples are included in the test directory that show how to use the reporters,
14 as well a basic runner scripts for Rhino + envjs, and a basic runner for
15 [PhantomJS](https://github.com/ariya/phantomjs) (using PyPhantomJS and the
16 saveToFile plugin). Either of these methods could be used in a Continuous
17 Integration project for running headless tests and generating JUnit XML output.
18
19 ### Rhino + EnvJS
20
21 Everything needed to run the tests in Rhino + EnvJS is included in this
22 repository inside the `ext` directory, specifically Rhino 1.7r2 and envjs 1.2
23 for Rhino.
24
25 ### PhantomJS, PyPhantomJS
26
1821f67 @bloveridge update README
bloveridge authored
27 PhantomJS is included as a submodule inside the `ext` directory. The included
28 example runner makes use of PyPhantomJS to execute the headless tests and
29 save XML output to the filesystem.
00dec9b @bloveridge add info on PhantomJS / PyPhantomJS to README
bloveridge authored
30
31 While PhantomJS and PyPhantomJS both run on MacOS / Linux / Windows, there are
32 specific dependencies for each platform. Specifics on installing these are not
1821f67 @bloveridge update README
bloveridge authored
33 included here, but is left as an exercise for the reader. The [PhantomJS](https://github.com/ariya/phantomjs)
34 project contains links to various documentation, including installation notes.
00dec9b @bloveridge add info on PhantomJS / PyPhantomJS to README
bloveridge authored
35
36 Here is how I got it working in MacOSX 10.6 (YMMV):
37
38 * ensure you are using Python 2.6+
39 * install Xcode (this gives you make, et al)
40 * install qt (this gives you qmake, et al)
41 * this may be easiest via [homebrew](https://github.com/mxcl/homebrew)
42 * `brew install qt`
43 * install the python sip module
44 * `pip install sip # this will fail to fully install sip, keep going`
45 * `cd build/sip`
46 * `python configure.py`
47 * `make && sudo make install`
48 * install the python pyqt module
49 * `pip install pyqt # this will fail to fully install pyqt, keep going`
50 * `cd build/pyqt`
51 * `python configure.py`
52 * `make && sudo make install`
Something went wrong with that request. Please try again.