Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added config options #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion lib/atom-phpunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,26 @@ export default {
type: 'string',
default: '/usr/local/bin/phpunit'
},
outputViewFontSize: {
configPath: {
order: 6,
title: 'PHPUnit Config Path',
description: 'Set the PHPUnit config path if your project uses not standart configuration path.',
type: 'string',
default: 'phpunit.xml'
},
outputViewFontSize: {
order: 7,
title: 'Output View Font Size',
description: 'Set the font size of the PHPUnit Output view',
type: 'string',
default: '14px'
},
runnerSpecificOptions: {
order: 8,
title: 'PHPUnit specific options',
description: 'PHPUnit specific options to run ',
type: 'string',
default: ''
}
},

Expand Down Expand Up @@ -184,6 +198,12 @@ export default {
else
cmd = atom.config.get('atom-phpunit.phpunitPath');

if (atom.config.get('atom-phpunit.configPath') !== 'phpunit.xml')
cmd += ' --configuration=' + atom.config.get('atom-phpunit.configPath');

if (atom.config.get('atom-phpunit.runnerSpecificOptions'))
cmd += ' ' + atom.config.get('atom-phpunit.runnerSpecificOptions');

if (typeof functionName !== 'undefined')
cmd += ` --filter=${functionName}$`;

Expand Down