loopback/test
Miroslav Bajtoš 50816ebbe3 Fix loopback in PhantomJS, fix karma tests
- Move configuration of Karma unit-tests from `Gruntfile.js` to a
  standalone file (`test/karma.conf.js`).

- Add a new Grunt task `karma:unit-ci` to run Karma unit-tests in
  PhantomJS and produce karma-xunit.xml file that can be consumed
  by the CI server.

- Add grunt-mocha-test, configure it to run unit-tests.

- Add `grunt test` task that runs both karma and mocha tests,
  detects Jenkins to produce XML output on CI server.

- Modify the `test` script in `package.json` to run
  `grunt mocha-and-karma` (an alias for `grunt test`).
  The alias is required to trick `sl-ci-run` to run `npm test`
  instead of calling directly `mocha`.

- Add `es5-shim` module to karma unit-tests in order to provide
  ES5-methods required by LoopBack.

- Fix `mixin(source)` in lib/loopback.js to work in PhantomJS.
  `Object.getOwnPropertyDescriptor()` provided by `es5-shim` does not
  work in the same way as in Node.
2014-06-26 13:30:09 +02:00
..
e2e Move replication implementation to DataModel 2014-05-06 13:31:23 -07:00
fixtures Remove `app.boot` 2014-06-25 14:09:06 +02:00
util Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
access-control.integration.js test: add debug logs 2014-06-12 10:41:44 +02:00
access-token.test.js Merge branch 'master' into 2.0 2014-06-16 10:20:22 +02:00
acl.test.js Merge branch 'master' into 2.0 2014-06-13 10:09:25 +02:00
app.test.js Remove `app.boot` 2014-06-25 14:09:06 +02:00
change.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
data-source.test.js Merge branch 'master' into 2.0 2014-06-20 23:48:46 -07:00
email.test.js Fix race condition where MyEmail model was not attached to the correct dataSource in tests 2014-01-23 14:25:54 -08:00
geo-point.test.js test/geo-point: relax too precise assertions 2014-05-16 16:24:18 +02:00
hidden-properties.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
integration.test.js Add test for request pausing during authentication 2014-03-18 08:43:24 +01:00
karma.conf.js Fix loopback in PhantomJS, fix karma tests 2014-06-26 13:30:09 +02:00
loopback.test.js lib/registry: `getModel` throws, add `findModel` 2014-06-16 16:13:24 +02:00
memory.test.js Add memory docs and test 2013-07-16 13:39:03 -07:00
model.application.test.js Remove the generated flag as the id is set by the before hook 2014-03-17 10:01:29 -07:00
model.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
relations.integration.js test: add debug logs 2014-06-12 10:41:44 +02:00
remote-connector.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
remoting.integration.js Allow app.model() to accept a DataSource instance 2014-03-21 12:18:00 -07:00
replication.test.js Rename DataModel to PersistedModel 2014-06-05 09:56:00 +02:00
rest.middleware.test.js Modify `loopback.rest` to include `loopback.token` 2014-05-21 15:22:36 +02:00
role.test.js Add a test case 2014-06-10 16:39:32 -07:00
support.js !fixup RemoteConnector tests 2014-05-02 20:04:06 -07:00
user.test.js Allow the creation of access token to be overriden 2014-06-09 14:53:55 -07:00