Commit Graph

12402 Commits

Author SHA1 Message Date
Blade Barringer c7b162271c Adjust context title. 2015-10-26 17:13:21 -05:00
Sabe Jones 2df6df2bee Merge pull request #6091 from HabitRPG/sabrecat/mystery-201510
October 2015 Subscriber Items
2015-10-26 15:04:43 -05:00
Blade Barringer 13fa14270d Add additional check for stat change 2015-10-26 12:52:18 -05:00
Blade Barringer f8d08b4195 Merge branch 'jeremyabbott-userputtests' into userput 2015-10-26 12:25:17 -05:00
Blade Barringer 6a6922bb3f Add tests for protected paths 2015-10-26 12:24:02 -05:00
Jeremy Abbott e4269723e1 Creates initial PUT /user test
Adds missing semi-colon to DELETE-user.test.js
2015-10-26 10:54:37 -05:00
Blade Barringer 0eac953170 Adjust stying of put test 2015-10-26 08:04:30 -05:00
Blade Barringer cf7be0b7a3 Merge branch 'develop' into jeremyabbott-userputtests 2015-10-26 08:00:30 -05:00
Blade Barringer 04fbdaa107 Reinstate error code in resolve promise for api tests. 2015-10-26 07:53:51 -05:00
Jeremy Abbott eeb14075bb Creates initial PUT /user test 2015-10-25 22:58:10 -05:00
Jeremy Abbott 6b52a32265 Creates user-put file with stub test 2015-10-25 18:07:50 -05:00
kylestratis b75f044d07 Changed Mongo query to check DateTerminated to prevent accumulation of mystery items when subscription is ended. 2015-10-25 18:16:42 -04:00
Blade Barringer 01914523e1 Remove dependency on chai-shallow-deep-equal 2015-10-25 12:50:14 -05:00
Blade Barringer b72c37301c Update api tests readme 2015-10-25 11:34:45 -05:00
Blade Barringer 8e282738f5 Convert pending api tests to use promise syntax 2015-10-25 11:21:19 -05:00
Blade Barringer 829b1253fb Revert nodemon change for tests and log errors if they arise 2015-10-25 11:10:10 -05:00
Blade Barringer f06d3cdffe Convert remaining active api tests to use promises 2015-10-25 11:09:50 -05:00
Blade Barringer 12ce4b133d Update GET groups route test to use promises. 2015-10-25 10:57:42 -05:00
Blade Barringer 177c81da81 Use promise syntax for Get groups id route test. 2015-10-25 10:43:34 -05:00
Blade Barringer 5961e02f5f Use promise syntax in POST groups test. 2015-10-25 10:12:43 -05:00
Blade Barringer 7fe2a19bc5 Adjust start server task to use nodemon to recover from syntax errors 2015-10-25 09:54:09 -05:00
Blade Barringer a5c0bae273 Update POST group id tests. 2015-10-25 09:40:36 -05:00
Blade Barringer f98c6b7192 Add chai-shallow-deep-equal plugin 2015-10-25 09:40:23 -05:00
Blade Barringer 45afc9f3fb Only start up server in tests if it is not already running. 2015-10-25 09:19:42 -05:00
Blade Barringer 96c77dad9c Promisify join group route test 2015-10-25 09:02:22 -05:00
Blade Barringer d370219142 Use promise syntax for leave groups route test. 2015-10-25 08:59:43 -05:00
Blade Barringer a52b30b33c Update group leaveMember test 2015-10-25 08:19:45 -05:00
Blade Barringer 27cb5881cd Adjust delete route test to use promises 2015-10-25 08:16:21 -05:00
Blade Barringer 69d48cb98e Adjust the get user integration test 2015-10-25 08:14:16 -05:00
Blade Barringer 600f56dae0 Convert status test to promise 2015-10-25 08:02:30 -05:00
Blade Barringer 661d070b56 Add additional tests for register route 2015-10-24 22:28:04 -05:00
Blade Barringer b763aedd29 Change helper to reject only error message 2015-10-24 22:23:30 -05:00
Blade Barringer a0547b99ca Update dependencies 2015-10-24 20:14:48 -05:00
Blade Barringer fb30a7b03b Compile sprites. 2015-10-24 20:14:30 -05:00
nivl4 495e103be5 Update vagrant provisioning script to create symlinks for any binaries the package might contain (default npm install behavior), as without those symlinks "npm test" gives the following error:
vagrant@habitrpg:/vagrant$ npm test

> habitrpg@0.0.0-152 test /vagrant
> gulp test

[Error: /vagrant/node_modules/bson/build/Release/bson.node: invalid ELF header]
js-bson: Failed to load c++ bson extension, using pure JS version
[07:07:48] Using gulpfile /vagrant/gulpfile.js
[07:07:48] Starting 'test:prepare:build'...
[07:07:48] Starting 'test:prepare:mongo'...
[07:07:48] Starting 'test:prepare:webdriver'...
[07:07:48] 'test:prepare:build' errored after 33 ms
[07:07:48] Error: Command failed: /bin/sh: 1: ./node_modules/.bin/grunt: not found

    at ChildProcess.exithandler (child_process.js:658:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Socket.<anonymous> (child_process.js:979:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)
[07:07:48] Finished 'test:prepare:mongo' after 78 ms
[07:08:50] Finished 'test:prepare:webdriver' after 1.02 min
npm ERR! Test failed.  See above for more details.

- "npm install" was giving the following error in earlier version of VirtualBox when creating symlinks with relative "../" path in shared folders. "--no-bin-links" was a workaround, but it's been fixed in the latest VirtualBox 5.0.8 (https://www.virtualbox.org/ticket/14563)

vagrant@habitrpg:/vagrant$ npm install
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN EPEERINVALID chai-as-promised@3.3.1 requires a peer of chai@>= 1.0.2 < 2 but none was installed.
npm WARN EPEERINVALID karma-requirejs@0.2.2 requires a peer of requirejs@~2.1 but none was installed.
npm ERR! Linux 3.2.0-23-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.37
npm ERR! npm  v3.3.6
npm ERR! path ../acorn/bin/acorn
npm ERR! code UNKNOWN
npm ERR! errno -1

npm ERR! UNKNOWN, symlink '../acorn/bin/acorn'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /vagrant/npm-debug.log
2015-10-24 09:53:01 +08:00
nivl4 719eb6583a Remove vagrant customization that enables symlinks in /vagrant shared folder, at that is the default behavior of vagrant since 1.1. (https://github.com/mitchellh/vagrant/issues/713#issuecomment-13201507) 2015-10-24 09:51:54 +08:00
Blade Barringer ff64523ae4 Merge pull request #6062 from crookedneighbor/new_api_test_infrastructure
New api test infrastructure
2015-10-23 18:06:39 -05:00
Blade Barringer e456bdb2ae Revert npm bin command 2015-10-23 17:35:45 -05:00
Blade Barringer 6aa6c1e1c2 Merge branch 'develop' into new_api_test_infrastructure 2015-10-23 17:32:44 -05:00
Blade Barringer 26ccde6e10 Create guidelines for writing api tests 2015-10-23 17:31:29 -05:00
Sabe Jones 2582d0b7c7 fix(sprites): Flip goblin tail
The Goblin Tail slightly breaks from convention for items (it's 12px wider than most), but that allows it to remain visible and well composed when the avatar is riding a mount.
2015-10-23 16:33:58 -04:00
Sabe Jones 392889c7da feat(mystery): October 2015 subscriber set 2015-10-23 15:45:43 -04:00
Blade Barringer 5481178dbe Move e2e tests higher up in test calls 2015-10-23 12:42:47 -05:00
Blade Barringer 7ad2e6d1ff Add comments to helper methods 2015-10-23 12:32:15 -05:00
Blade Barringer 6492554cf1 Add error handling for when mongo is not running. 2015-10-23 12:19:51 -05:00
ksami f2c856f6e6 Make link translatable in options/inventory/time-travelers 2015-10-23 23:40:11 +08:00
ksami b3cc58886c Make strings translatable in options/social/chat-box 2015-10-23 23:20:59 +08:00
Blade Barringer 27d9e60d0f Update api legacy test readme 2015-10-22 20:05:31 -05:00
Blade Barringer 73b2208106 Port final groups test to new structure 2015-10-22 20:02:08 -05:00
Blade Barringer 3c8c4343ee Move group tests to new test structure 2015-10-22 18:04:16 -05:00