Commit Graph

710 Commits

Author SHA1 Message Date
Daniel Saewitz
08d57e32ff wip 2013-02-21 20:17:23 -05:00
Daniel Saewitz
ddff29ccf0 wip 2013-02-21 14:18:53 -05:00
Daniel Saewitz
905e728c70 Merge branch 'develop' of github.com:lefnire/habitrpg into api 2013-02-20 20:05:06 -05:00
Daniel Saewitz
f75e3662b9 wi[ 2013-02-20 20:04:09 -05:00
Tobias Leugger
68282f4cd3 Fixing the dailies and todos casper test (now even with working cron tests) 2013-02-21 00:56:27 +01:00
Daniel Saewitz
897cd3f2bb wip 2013-02-20 13:35:21 -05:00
Tobias Leugger
48656ed8fa Fixing the dailies casper tests (almost). Found out that the main problem why most tests aren't working: the derby app seems to need some time after a click/action before the model is updated. This means sometime the user object was completely empty. I've introduced a short wait before retrieving the model that fixes this problem. 2013-02-17 17:55:30 +01:00
Tyler Renelle
ce9e676d1e add 100x refresh test script for memory leak 2013-02-13 15:42:50 -05:00
Tyler Renelle
8dd0b4eeb2 todos.casper.coffee 2013-01-30 12:11:15 -05:00
Tyler Renelle
278cd04fd1 rewards tests 2013-01-28 18:22:19 -05:00
Tyler Renelle
26462be457 more todos/dailies test cleanup 2013-01-28 18:10:59 -05:00
Tyler Renelle
d5f36a291c todos tests (stub) 2013-01-28 17:43:50 -05:00
Tyler Renelle
4a7b5183f8 dailies tests 2013-01-28 17:42:48 -05:00
Tyler Renelle
24979d35df habits tests 2013-01-28 17:37:36 -05:00
Tyler Renelle
c3810cf7ea registration tests 2013-01-28 17:31:10 -05:00
Tyler Renelle
1009a87954 Merge pull request #226 from toebu/completed-todos-fix
Getting rid of the completedList and completedIds
2013-01-28 12:09:12 -08:00
Tobias Leugger
61b848bf4f Updating the task list cleanup to not restore the completedIds list.
Fixing the mocha test to not check for the completedIds.
2013-01-27 18:55:46 +01:00
Tyler Renelle
2c7ac2afa5 moving tests around 2013-01-26 14:57:47 -05:00
Tyler Renelle
121f33b3a9 don't log in user with REST call 2013-01-25 13:56:20 -05:00
Tyler Renelle
0188379552 fix REST testing setup 2013-01-25 13:51:22 -05:00
Tyler Renelle
00a73c8ff0 more casper 2013-01-21 23:38:00 -05:00
Tyler Renelle
fb484e133c more casperjs 2013-01-21 20:16:47 -05:00
Tyler Renelle
3d18b462ea more casper testing 2013-01-21 17:22:01 -05:00
Tyler Renelle
b9e479e589 hp now docking on cron 2013-01-20 23:22:02 -05:00
Tyler Renelle
ff2fb0f643 casper fixes. remove cron from browser since it's run on server, will
add in an HP animation later
2013-01-20 17:49:30 -05:00
Tyler Renelle
92d4e393e8 fix up some tests 2013-01-20 15:39:34 -05:00
Tyler Renelle
c700e90ea6 prepare casper for some better tests 2013-01-20 13:40:04 -05:00
Tyler Renelle
7fe9322b62 setup test files to use underscore instead of lodash 2012-10-28 15:32:10 -04:00
Tyler Renelle
f64b4d171c remove duplicates on cron. very hacky, need to figure out why
duplicates are being created in the first place
2012-10-17 23:40:20 -04:00
Tyler Renelle
79fd3f0689 New REST API for scoring tasks 2012-10-12 11:54:00 -04:00
Tyler Renelle
2e43d71a66 setting up for testing REST 2012-10-12 11:53:57 -04:00
Tyler Renelle
2c6288e997 test for running cron multiple times. it's passing, but not working
inthe browser - will need to test with capser
2012-10-11 13:12:54 -04:00
Tyler Renelle
eb9e385eb1 cleaning up the modificationsLookup function 2012-10-11 12:41:31 -04:00
Tyler Renelle
476fb63a0d tests passing for basic scoring 2012-10-11 11:41:47 -04:00
Tyler Renelle
38e1a95140 some fixes to test/user.mocha based on scoring lookup function 2012-09-26 21:36:28 -04:00
Tyler Renelle
00dc7cd061 test a few modification numbers, ready to test cron & habits 2012-09-26 00:32:55 -04:00
Tyler Renelle
18d8e93e55 remove rerollsRemaining, export delta function 2012-09-26 00:19:19 -04:00
Tyler Renelle
534e1be622 numerical tests down-score 2012-09-25 23:04:24 -04:00
Tyler Renelle
3ae3ba7a6e setting up to test numerical precision in scoring 2012-09-25 22:52:05 -04:00
Tyler Renelle
d5b233106c second trial in habit test 2012-09-24 19:03:26 -04:00
Tyler Renelle
1087f4abc4 some cleanup 2012-09-24 18:47:08 -04:00
Tyler Renelle
0f9b70daf2 fix moment() bugs (word from the wise, moment() functions modify the
original object)
2012-09-24 17:26:25 -04:00
Tyler Renelle
33f8c43e93 more bug-fixing on async cron, using lodash instead of underscore 2012-09-24 16:45:37 -04:00
Tyler Renelle
13a7019413 setup for async cron 2012-09-24 16:19:27 -04:00
Tyler Renelle
baf689a8d1 scoring function refactoring & testing 2012-09-24 14:23:11 -04:00
Tyler Renelle
163395829a restructuring user test a bit 2012-09-24 11:39:11 -04:00
Tyler Renelle
90f30ac1f0 renaming to user.mocha.coffee 2012-09-24 11:30:37 -04:00
Tyler Renelle
950c31a00c Add some next-step test cases 2012-09-24 11:26:32 -04:00
Tyler Renelle
d81ee34d2f setup some habit tests 2012-09-24 09:56:40 -04:00
Tyler Renelle
1c0d8726c3 setup modifier using constant 2012-09-24 09:52:52 -04:00