Is it possible to run npm test
against the remote redis server?
Also, is it possible to run it against the redis docker image ?
Thanks.
I am very much confused about this question. I might misunderstand what you want to do but if you want to trigger npm test
on the redis server address with a client command, that is not possible. You would want to use something like ssh
to communicate with other servers. That aside: the Redis server has nothing to do with npm.
@BridgeAR, so the node_redis
test suite (invoked via npm test
) relies on Redis existing on the same machine as where the node_redis
test suite runs?
Could there be any issues when using this module to interact with a Redis on a different architecture? e.g. I have my Node.js application running on s390x
, but the Redis is on a remote x64
server.
Ahh, now I understand. Hm, right now the test suite is hardcoded to the default local server. It would be great to change that but right now it is not possible to run the tests against a different machine.
This sounds like a feature request for the test suite, @BridgeAR do you want to reopen this issue or should I raise a new one?
I might have time the coming weeks to rework the way the tests use the Redis server.
Probably something along these lines:
npm run test-local
and npm run test-docker
to make it obvious which server it usesAny ideas or suggestions @BridgeAR?
@dirkbonhomme would it be possible for npm test
to fall back to docker if there isn't a local redis-server (but there is docker)?
@gibfahn definitely sounds possible:
Most helpful comment
I might have time the coming weeks to rework the way the tests use the Redis server.
Probably something along these lines:
npm run test-local
andnpm run test-docker
to make it obvious which server it usesAny ideas or suggestions @BridgeAR?