Commit Graph

2513 Commits

Author SHA1 Message Date
Andrew Bloomgarden f94ea084d7 Update README to account for API tests in JS. 2014-01-15 21:34:36 -08:00
Andrew Bloomgarden c9e3b37ff8 Rewrite API tests in normal JS. 2014-01-15 21:34:36 -08:00
Andrew Bloomgarden 689dddee7f Actually wait for Selenium to start. 2014-01-15 21:34:20 -08:00
Andrew Bloomgarden dc368bb652 Remove references to $rootScope.Shared & .Content in non-view code.
Instead, have them request services that return them so tests don’t need to prepare special state.
2014-01-15 21:33:58 -08:00
Andrew Bloomgarden 77801e458e Change static module name to habitrpgStatic.
The way the tests are written now, the habitrpg module definition in static.js
was clobbering the one in app.js. In other words, most of the tests weren't
testing what they thought they were testing.
2014-01-15 21:33:57 -08:00
Matteo Pagliazzi 263a752abf add mocha tests to travis, remove makefile 2014-01-15 20:11:29 +01:00
Dušan Juretić 74495bb690 Fix tag creation test 2014-01-13 23:20:33 -03:00
Dušan Juretić f7f9bb1131 Fix memberServices test 2014-01-13 23:09:11 -03:00
Tyler Renelle a326072858 start adding quests tests 2014-01-05 15:08:10 -07:00
Tyler Renelle e474278ab3 groups: upon group-creation, creator is automatically assigned as leader
and only member. Remove sending up leader & members from the client,
should all be handled on the server
2014-01-05 15:08:10 -07:00
Dušan Juretić aa0a515e5e Tests for filtersCtrl 2014-01-04 22:40:57 -03:00
Dušan Juretić 4777a693ba Test refactoring: user.user -> user 2014-01-04 17:35:45 -03:00
Dušan Juretić a74e99a78f Minor style changes to inventoryCtrlSpec.js 2014-01-04 17:32:30 -03:00
Dušan Juretić a4c7775d51 Tests for choosing a pet and buying an egg 2014-01-04 17:28:13 -03:00
Dušan Juretić 24815af9c1 Added inventoryCtrl tests for hatching and selling 2014-01-04 00:02:51 -03:00
Dušan Juretić d58568c9d8 Fix AuthCtrl tests with proper asserts 2014-01-03 23:28:43 -03:00
Tyler Renelle 9a6f0c0339 challenges: don't remove To-Dos that are part of a challenge when
clearing completed
2014-01-03 14:18:53 -07:00
Tyler Renelle c9e083b602 challenges: add "official habitrpg challenge" option 2014-01-03 13:36:13 -07:00
Tyler Renelle abd300199a challenges: allow members to override challenge.tasks.notes, and sycning
challenge won't update those notes.
2014-01-03 13:10:56 -07:00
Tyler Renelle 6d8e4ed8a2 tests: api.mocha.coffee cleanup WIP 2014-01-03 10:26:46 -07:00
Tyler Renelle 2c1eb955ac fix #1954 . Start updating API tests, beginning with challenges. Use
test to fix "challenge updates not updating users' tasks"
2014-01-03 00:01:24 -07:00
Dušan Juretić ae080fd474 Tests for inventoryCtrl 2014-01-02 22:49:31 -03:00
Dušan Juretić 803a45b47f Test server port changed to 3001 2014-01-01 14:01:51 -03:00
Dušan Juretić 431622ce14 E2e tests: launch Selenium and node server and kill them after finishing the tests, using a test database 2014-01-01 14:01:51 -03:00
Dušan Juretić 69c4977511 Fix again e2e test 2014-01-01 14:01:51 -03:00
Dušan Juretić c572a195aa Take screenshot of failed e2e tests 2014-01-01 14:01:51 -03:00
Dušan Juretić 87e7b2ead6 Fix build by giving more time to Protractor 2014-01-01 14:01:51 -03:00
Dušan Juretić a6443bceb8 Fix build 2014-01-01 14:01:51 -03:00
Dušan Juretić 91b0f3fb96 E2e testing: added tests for failed login and register new user 2014-01-01 14:01:51 -03:00
Dušan Juretić 462bc416de Starting e2e testing 2014-01-01 14:01:23 -03:00
Dušan Juretić 6ab10f9f3d Fix unit tests 2013-12-23 22:38:15 -03:00
Dušan Juretić 9f32d3e7b8 Fix userServicesSpecs by adding notificationServices 2013-12-15 16:49:53 -03:00
Dušan Juretić 34ea6038f1 add single test for notificationServices 2013-11-15 22:42:30 -03:00
Dušan Juretić 2f5025e322 add tests for groupServices 2013-11-15 22:42:30 -03:00
Dušan Juretić f4ac5dfe8c fix unit tests 2013-10-31 22:35:35 -03:00
Dušan Juretić bb4350fb52 add tests for memberServices 2013-10-19 23:33:27 -03:00
Dušan Juretić 6830a9281d add tests for userServices, changed alert to $window.alert in userServices 2013-10-13 19:01:46 -03:00
Dušan Juretić 89b4d2ece0 authCtrl tests now working, replaced window for $window 2013-10-12 22:46:13 -03:00
Tyler Renelle c54c383c5a [#1534] add some more starter test code, still no tests 2013-09-13 21:19:02 -04:00
Tyler Renelle 449ea620af mongoose WIP: use mongoose in API routes, instead of Racer. Add mongoose middleware to perform proper Derby <-> API transformations. some safe-guarding of PUT /user paths, send error messages if they're using the old way. remove task deletion & addition from PUT /user 2013-08-24 18:52:29 -04:00
Tyler Renelle 319c2667d7 some sloppy mocha tests for corrupt task handling 2013-08-15 00:28:27 -04:00
Tyler Renelle 0d83ac09fc api; on batch-update, override res.send & res.json to call the series
callback instead, and simply skip error paths. we need to send down the
error eventually
2013-08-14 21:50:17 -04:00
Tyler Renelle 66bdd3616e API utility sendResult function, new POST /api/v1/register route to register new uname/pass users (i'm thinking about nixing facebook altogether in the future) 2013-08-14 19:35:14 -04:00
Tyler Renelle 2252bebf9b set mocha timeout to 4s 2013-08-14 09:42:25 -04:00
Tyler Renelle d17bd6fe90 api: export all of api to functions, called by route. This way we can have our /batch-update route access the api functions 2013-08-11 00:47:40 -04:00
Tyler Renelle e667b3a2b0 start adding v2 api tests (nothing here yet) 2013-08-08 14:04:07 -04:00
Tyler Renelle 8e922bb151 API: add facebook auth route 2013-07-12 17:15:11 -04:00
Tyler Renelle 704a056c47 Merge remote-tracking branch 'switz/api-authentication' into develop
Conflicts:
	src/server/api.coffee
	test/api.mocha.coffee
2013-07-12 16:36:12 -04:00
Tyler Renelle f0c50e1cfe fix api + tests 2013-05-25 19:42:59 +01:00
Tyler Renelle 955c2841ea tests: get rid of user.mocha.coffee, now it's in habitrpg-shared 2013-05-25 18:29:42 +01:00