It should return true for ignored coverage files
"// IGNORE COVERAGE".isIgnored.should.equal(true); "// \t IGNORE \t COVERAGE".isIgnored.should.equal(true); "// ignore coverage".isIgnored.should.equal(true); "//IGNORE COVERAGE".isIgnored.should.equal(true); "/////IGNORE COVERAGE".isIgnored.should.equal(true); "// IGNORE COVERAGE ".isIgnored.should.equal(true); "/* IGNORE COVERAGE */".isIgnored.should.equal(true); "/***** IGNORE COVERAGE ".isIgnored.should.equal(true); "/***** IGNORE COVERAGE ****/".isIgnored.should.equal(true); "/+ IGNORE COVERAGE +/".isIgnored.should.equal(true); "/+++++ IGNORE COVERAGE ".isIgnored.should.equal(true); "/+++++ IGNORE COVERAGE +++++/".isIgnored.should.equal(true);
It should return false for when the ignore coverage file is missing
"".isIgnored.should.equal(false); "//\nIGNORE COVERAGE".isIgnored.should.equal(false); "//\nIGNORE COVERAGE".isIgnored.should.equal(false); "/////\nIGNORE COVERAGE".isIgnored.should.equal(false); "//\n IGNORE COVERAGE ".isIgnored.should.equal(false); "/*\n IGNORE COVERAGE */".isIgnored.should.equal(false); "/***** \n IGNORE COVERAGE ".isIgnored.should.equal(false); "/***** \n IGNORE COVERAGE ****/".isIgnored.should.equal(false); "/+ \n IGNORE COVERAGE +/".isIgnored.should.equal(false); "/+++++ \n IGNORE COVERAGE ".isIgnored.should.equal(false); "/+++++ \n IGNORE COVERAGE +++++/".isIgnored.should.equal(false); "// IGNORE\nCOVERAGE".isIgnored.should.equal(false); "//IGNORE\nCOVERAGE".isIgnored.should.equal(false);
Check if a file should be ignored from the report