Fix matchers and add tests

This commit is contained in:
Shivam Mathur
2019-12-19 02:38:12 +05:30
parent 8039546df3
commit 1798f4d615
7 changed files with 103 additions and 40 deletions

View File

@ -4,7 +4,7 @@ import * as config from './config';
import * as coverage from './coverage';
import * as extensions from './extensions';
import * as utils from './utils';
import {addMatchers} from './matchers';
import * as matchers from './matchers';
/**
* Build the script
@ -26,6 +26,7 @@ export async function build(
(await utils.getInput('ini-values', false)) ||
(await utils.getInput('ini-values-csv', false));
const coverage_driver: string = await utils.getInput('coverage', false);
const setup_matchers: string = await utils.getInput('matchers', false);
let script: string = await utils.readScript(filename, version, os_version);
if (extension_csv) {
@ -69,8 +70,7 @@ export async function run(): Promise<void> {
);
break;
}
addMatchers();
await matchers.addMatchers();
} catch (error) {
core.setFailed(error.message);
}