INACTIVE - http://mzl.la/ghe-archive - Web frontend for openbadges-validator
Перейти к файлу
Mike Larsson 7317a0f3f2 Remove unnecessary test util method 2013-08-19 14:45:34 -04:00
bin logger's exception handling, monkeypatching must be explicitly enabled. 2013-08-12 16:10:16 -04:00
features Add more tests, README documentation, and ability to test external URL 2013-08-12 18:49:07 -04:00
lib Allow validation through GET with assertion param 2013-08-19 14:43:55 -04:00
static Progressively enhance form submission: 2013-07-10 18:07:35 -04:00
test Remove unnecessary test util method 2013-08-19 14:45:34 -04:00
views Let validator take signatures 2013-07-31 09:58:09 -04:00
.gitignore Adding test coverage to the project 2013-08-08 14:58:04 -04:00
.travis.yml Adding travis.yml 2013-07-11 15:26:17 -04:00
LICENSE Add license, readme 2013-03-29 12:16:58 -04:00
Makefile Adding test coverage to the project 2013-08-08 14:58:04 -04:00
README.md Add more tests, README documentation, and ability to test external URL 2013-08-12 18:49:07 -04:00
index.js Adding test coverage to the project 2013-08-08 14:58:04 -04:00
package.json Add cuke tests to npm test 2013-08-19 13:38:13 -04:00

README.md

openbadges-validator-service Build Status

This is the Web front-end for openbadges-validator.

Quick Start

$ npm install
$ npm test
$ node bin/openbadges-validator-service.js

Then visit http://localhost:8888.

Environment Variables

  • PORT is the port to serve the Web application on. Defaults to 8888.

  • NEW_RELIC_HOME is the optional path to the directory containing newrelic.js, if you want to integrate with New Relic.

Acceptance Tests

Acceptance tests are automatically run with npm test. Their behavior can be changed by the following environment variables:

  • ACCEPTANCE_DEBUG represents a boolean value. If it exists, logging output will be displayed that makes the tests easier to debug.

  • ACCEPTANCE_BROWSER_NAME is the name of the browser to use when running the acceptance tests. If this is phantom (the default), phantomjs is automatically started and used for browser automation. Otherwise, it's assumed that a [WebDriver][] server is hosted at port 4444 and the browserName capability is set to this environment variable.

  • ACCEPTANCE_EXTERNAL_URL lets you provide an external URL to test instead of running against an instance on localhost. This is useful to test application deployments.

Test Coverage

Build/install jscoverage, run make test-cov, then open coverage.html in a browser.

License

MPL 2.0