mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Tests: require 100% branch coverage to pass
Remove old coverage tooling, coveralls
This commit is contained in:
@@ -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
|
||||
@@ -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'
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user