alsatian-test/alsatian

View on GitHub
packages/vscode-extension/src/running/test-runner.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function runTest has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public async runTest(fileName: string, fixtureName: string, testName?: string, execArgv?: string[]) {

        const eventData = {
            fileName,
            fixtureName,
Severity: Major
Found in packages/vscode-extension/src/running/test-runner.ts - About 2 hrs to fix

    Function results has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            const results = await new Promise<ITestCompleteEvent[] | null>((resolve, reject) => {
                let results = [] as ITestCompleteEvent[];
    
                runProcess.on("message", message => {
                    if (message.type === "testComplete") {
    Severity: Minor
    Found in packages/vscode-extension/src/running/test-runner.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status