mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Fix Xdebug coverage
This commit is contained in:
parent
e0ed1ad0ef
commit
c5e40d9067
@ -47,6 +47,12 @@ describe('Config tests', () => {
|
||||
expect(linux).toContain('echo "xdebug.mode=coverage"');
|
||||
});
|
||||
|
||||
it('checking addCoverage with Xdebug on linux', async () => {
|
||||
const linux: string = await coverage.addCoverage('xdebug', '8.0', 'linux');
|
||||
expect(linux).toContain('add_extension xdebug');
|
||||
expect(linux).toContain('echo "xdebug.mode=coverage"');
|
||||
});
|
||||
|
||||
it('checking addCoverage with Xdebug on darwin', async () => {
|
||||
const darwin: string = await coverage.addCoverage(
|
||||
'xdebug',
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -2163,7 +2163,7 @@ async function addCoverageXdebug(extension, version, os_version, pipe) {
|
||||
return '\n' + xdebug + '\n' + ini + '\n' + log;
|
||||
case /^xdebug$/.test(extension):
|
||||
default:
|
||||
return '\n' + xdebug + '\n' + log;
|
||||
return xdebug + '\n' + log;
|
||||
}
|
||||
}
|
||||
exports.addCoverageXdebug = addCoverageXdebug;
|
||||
|
@ -34,7 +34,7 @@ export async function addCoverageXdebug(
|
||||
return '\n' + xdebug + '\n' + ini + '\n' + log;
|
||||
case /^xdebug$/.test(extension):
|
||||
default:
|
||||
return '\n' + xdebug + '\n' + log;
|
||||
return xdebug + '\n' + log;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user