com.livecode.unittest | |
Type | module |
Dictionary | LCB |
Library | LiveCode Builder |
Associations | com.livecode.unittest |
Summary | This library provides syntax for unit testing LiveCode Builder programs. It is used by the LiveCode Builder standard library's testsuite. To use this library, write your tests in a Builder source code file.
Each group of tests should be a public handler with a name beginning
with |
Example |
|
Description | This library provides syntax for unit testing LiveCode Builder programs. It is used by the LiveCode Builder standard library's testsuite. To use this library, write your tests in a Builder source code file.
Each group of tests should be a public handler with a name beginning
with |
Type | Name | Summary | Syntax |
---|---|---|---|
module | com.livecode.unittest | This library provides syntax for unit testing LiveCode Builder programs. It is used by the LiveCode Builder standard library's testsuite. To use this library, write your tests in a Builder source code file.
Each group of tests should be a public handler with a name beginning
with | |
statement | UnitDiagnostic | Log unit test diagnostic message. | test diagnostic <Message> |
- - - | UnitPlan | Announce how many test results are expected from the unit test. | plan <Count> tests |
- - - | UnitTest | Make a unit test assertion | test <Condition> |
- - - | UnitTestDescription | Make a unit test assertion with a description | test <Description> when <Condition> |
- - - | UnitTestFails | Make a failing unit test assertion | broken test <Condition> |
- - - | UnitTestFailsDescription | Make a failing unit test assertion with a description | broken test <Description> when <Condition> |
- - - | UnitTestFailsDescriptionAndReason | Make a failing unit test assertion with a reason for brokenness | broken test <Description> when <Condition> because <Reason> |
- - - | UnitTestFailsReason | Make a failing unit test assertion with a reason for brokenness | broken test <Condition> because <Reason> |
- - - | UnitTestSkip | Record a skipped test | skip test |
- - - | UnitTestSkipDescription | Record a skipped test with a description | skip test <Description> |
- - - | UnitTestSkipDescriptionAndReason | Record a skipped test with a test description and reason for skipping | skip test <Description> because <Reason> |
- - - | UnitTestSkipReason | Record a skipped test with a reason for skipping | skip test because <Reason> |