Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

jwark/jstd-standalone-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jstd-standalone-headless
========================

Standalone Headless (PhantomJS) JsTestDriver runner


Allows you to run jsTestDriver tests from the command line without running a server or opening a browser

Prints a lot of interesting data into the console

Requires jstd-headless.html to be in the same directory as jsTestDriver.conf

If you are not using an external assert library like hamcrest, you will need to include the Assert.js from jstestdriver source
This is in the support directory. Simply creating a link tag in jstd-headless.html should be sufficient.


Setup
=====
install PhantomJS
$ brew install phantomjs


Running tests
=============
The script can be run in 3 modes:

1) supply no args and the script will list out the tests from your jsTestDriver.conf (must be individual files, no pattern matching is supported).
 $ phantomjs run_jstd_test.coffee

2) pass through a path to a test file.
 $ phantomjs run_jstd_test.coffee 'sample/test/myClassTest.js'

3) pass through a path containing test files.
 $ phantomjs run_jstd_test.coffee 'sample/test'


Much code was copied from:
https://github.com/mobz/jstd-standalone
https://github.com/jcarver989/phantom-jasmine

About

Standalone Headless (PhantomJS) JsTestDriver runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published