|| File: testrunner.curl
|| Simple applet that launches the Curl UI.
|| Author: Joerg Beekmann
|| Versin: 1.0

{curl 1.6, 1.7 applet}
{applet license= "development"}

{import package * from CURLUNIT.UI,
    location = "./source/ui.curl"}

|| If you are running this file from a local environment it is handy to import the
|| package under test explicitly. This if the TestRunner it invoked from the IDE you
|| will be prompted to save open files. Also compilation errors are found and hightlighted
|| in the usual way rather than as a runtime error when the package under test is imported.
|| This is particularly useful early in the development cycle when may changes are being made.
||
||{import package * from MYPACKAGE,
||  location= "<path to my package>/mypackage.curl"}

{persistent-data "Store URI's run for handy access next time.",
    duration=90days,
    max-size=1024}

{value
    let runner:SimpleTestRunner= {SimpleTestRunner}
    {if runner.test-uris.empty? then
        set runner.test-uris= {{Array-of String}
                                  "./source/framework.curl#CURLUNIT.FRAMEWORK",
                                  "../samples/sampletests.curl#SAMPLETESTS/sample-test",
                                  "file:///<local path>/mypackage.curl#MYPACKAGE/MyTest",
                                  "../samples/money/money.curl#MONEY",
                                  "../samples/money/money.curl#MONEY/SimpleMoneyTest",
                                  "../samples/money/money.curl#MONEY/MoneyTest.test-bag-money-add"}
    }
    runner.ui
}
