Tests: require 100% branch coverage to pass

Remove old coverage tooling, coveralls
This commit is contained in:
Lovell Fuller
2022-09-27 13:49:42 +01:00
parent b0c69f1ee9
commit 2d49f0e93e
6 changed files with 12 additions and 29 deletions

View File

@@ -1,6 +0,0 @@
#!/bin/sh
CPPFLAGS="--coverage" LDFLAGS="--coverage" npm rebuild
npm test
geninfo --no-external --base-directory src --output-file coverage/sharp.info build/Release/obj.target/sharp/src
genhtml --title sharp --demangle-cpp --output-directory coverage/sharp coverage/*.info

View File

@@ -175,12 +175,13 @@ describe('Text to image', () => {
});
it('fontfile input', function () {
// Added for code coverage
sharp({
text: {
text: 'text',
fontfile: 'UnknownFont.ttf'
}
assert.doesNotThrow(function () {
sharp({
text: {
text: 'text',
fontfile: 'UnknownFont.ttf'
}
});
});
});