Skip to content

Commit

Permalink
Added test for tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Jan 24, 2017
1 parent 97a1d7e commit 16cd042
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/vs/workbench/parts/tasks/test/node/configuration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,22 @@ suite('Tasks Configuration parsing tests', () => {
testConfiguration(external, builder);
});

test('tasks: global command and task command properties', () => {
let external: ExternalTaskRunnerConfiguration = {
version: '0.1.0',
command: 'tsc',
tasks: [
{
taskName: 'taskNameOne',
isShellCommand: true,
}
]
};
let builder = new ConfiguationBuilder();
builder.task('taskNameOne', 'tsc').command().shell(false);
testConfiguration(external, builder);
});

function testDefaultProblemMatcher(external: ExternalTaskRunnerConfiguration, resolved: number) {
let logger = new Logger();
let result = parse(external, logger);
Expand Down

0 comments on commit 16cd042

Please sign in to comment.