use nyc for coverage (#3652)

* use nyc for coverage

* removes unnecessary logss

* Disable RedisCacheAdapter tests when not in specific environment
This commit is contained in:
Florent Vilmart
2017-03-20 12:58:36 -04:00
committed by Arthur Cinader
parent eeb3a7028d
commit f3765e0b8e
10 changed files with 38 additions and 15 deletions

View File

@@ -1,6 +1,12 @@
var RedisCacheAdapter = require('../src/Adapters/Cache/RedisCacheAdapter').default;
describe('RedisCacheAdapter', function() {
/*
To run this test part of the complete suite
set PARSE_SERVER_TEST_CACHE='redis'
and make sure a redis server is available on the default port
*/
describe_only(() => {
return process.env.PARSE_SERVER_TEST_CACHE === 'redis';
})('RedisCacheAdapter', function() {
var KEY = 'hello';
var VALUE = 'world';