1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Benjamin Coe
071b3ff27c moved tests for specific commands into the /commands sub-folder, put a ton of tests around the multi command 2015-08-14 21:31:15 -07:00
Erin Spiceland
eaca486ab1 Add Mocha tests for the "set" method.
Fix error in organization of connection Mocha tests.

Clarify some test descriptions in 'set' Mocha tests.

Add some tests for mset.

Remove old 'set' tests.

Add some Mocha tests for 'get'.

Add tests for 'getset'.

Add tests for 'dbsize'.

Add 'flushdb' tests.

Add tests for 'incr'.
2015-08-14 21:31:13 -07:00
Erin Spiceland
3aaef47756 Fix bug in mocha tests Redis shutdown which expected exit code to eq 0.
Move a miscategorized select test into the correct describe.
2015-08-14 21:31:10 -07:00
Erin Spiceland
2b44245056 Add example test with grunt and mocha.
Add test for reconnect.

Run each test for both parsers and both IP versions.

Don't save a reference to this nodified assertion function.

Add DEBUG env var which enables extra debug logging in node_redis.

Remove Grunt, run Redis on 6378 for non-interference.

Remove the tests already ported to Mocha.

Port reconnect after pubsub test; add subscribed after reconnect test.

Reconnet after pubsub test confused me. I don't think it tested
anything, and it didn't pass for me after I ported it. I've disabled it
and added a note. In its place, I've added a test to make sure we are
still subscribed and can receive pubsub messages after a reconnect.

Move test suite config-like stuff into a library.

Move test suite createClient args generation into the config library.

WIP. Some select tests, most disabled and still WIP.
2015-08-14 21:30:12 -07:00
Erin Spiceland
6cae0b880f Merge pull request #785 from fintura/master
Add "use strict", semicolons, whitespace & code cleanup, remove util.print.
2015-08-06 11:11:13 -05:00
Hans Kristian Flaatten
b1ae21d221 Revert "Skip SOCKET test if Redis is not listening on a socket"
This reverts commit e646b4eb39.
2015-07-24 15:33:37 +02:00
Hans Kristian Flaatten
da535a6977 Normalize linked REDIS environment variables 2015-07-24 08:07:33 +02:00
Hans Kristian Flaatten
8b5ce1088a Allways pass HOST and PORT when creating a new client 2015-07-23 22:16:48 +02:00
Hans Kristian Flaatten
e646b4eb39 Skip SOCKET test if Redis is not listening on a socket 2015-07-23 22:16:07 +02:00
Hans Kristian Flaatten
d34dcc8b07 Check for REDIS HOST and PORT environment varibles 2015-07-23 22:15:55 +02:00
Ruben Bridgewater
01a377383b Use type safe comparison 2015-07-22 17:51:24 +02:00
Ruben Bridgewater
0908e9a46b Use console.log instead of deprecated util.print
util.print has been deprecated in node
2015-07-22 17:51:24 +02:00
Ruben Bridgewater
a2bc597212 Add simicolons
This is just a style change
2015-07-22 17:51:07 +02:00
Ruben Bridgewater
1f9e536ca0 Add use strict statements
This is going to improve the performance minimal and improves the safety of the code
2015-07-22 17:50:37 +02:00
Raymond Myers
19c5571229 Added a test case for detect_buffer behavior in a multi/exec 2015-07-11 22:47:25 -07:00
Benjamin Coe
d30e80abbe making an attempt to improve the test suite 2015-07-11 19:35:38 -07:00