asyncTest
is an extension to SDK ceylon.test
module with following capabilities:
- testing asynchronous multithread code
- executing tests concurrently or sequentially
- value- and type- parameterized testing
- organizing complex test conditions into a one flexible expression with matchers
- initialization and disposing with either functions or test rules
- test execution control with test runners
- conditional test execution
- multi-reporting: several failures or successes can be reported for a one particular test execution (test function),
each report is represented as test variant and might be marked with
String
title - reporting test results using charts (or plots)
- benchmarks
The module is available on Ceylon Herd.
Current version is 0.7.1.
Project structure
master branch contains the latest release
develop branch contains the currently developed version
Ceylon compiler / platform
Compiled with Ceylon 1.3.3
Available on JVM only
Dependencies
- ceylon.collection/1.3.3
- ceylon.file/1.3.3 shared
- ceylon.language/1.3.3
- ceylon.test/1.3.3.1 shared
- java.base/8 JDK
- java.management/8 JDK
Usage and documentation
The extension is aimed to be run using Ceylon test tool.
See usage details in API documentation.
Examples
- Test of Fibonacci numbers calculation.
Calculation function is executed on separated thread and returns results usingceylon.promise
. - Time scheduler testing.
- Benchmarking examples of benchmarks.
- Matchers - matchers usage.
- Parameterized - type- and value- parameterized testing.
- Rules - test rules usage.
- Vert.x - unit testing of Vert.x application.