VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
85 stars 3 forks source link

Pretty-print the results of each task within each test #310

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Pretty-print the results of each task within each test

https://github.com/VolantisDev/Launchpad/blob/0e6fcf5ea3417be59886cdab35536f6244dcf4e7/Lib/TestLib/TestRunner/TestRunnerBase.ahk#L32


class TestRunnerBase {
    tests := []
    results := Map()

    __New(tests) {
        if (Type(tests) != "Array") {
            tests := [tests]
        }

        this.tests := tests
    }

    RunTests() {
        for index, test in this.tests {
            this.RunTest(test)
        }

        return this.results
    }

    RunTest(test) {
        success := test.Run()
        results[test.GetKey()] := test.GetResults()
        return success
    }

    GetResults() {
        return this.results
    }

    PrintResults() {
        ; TODO: Pretty-print the results of each task within each test
    }
}

c5dd9e0df066a858b7124ce850eaa00f1a9ce3bc

github-actions[bot] commented 3 years ago

Closed in 189611ba17baa915a301ae8c3d8b7b010f67289c