Name |
|
---|---|
Backends | JVM JavaScript |
Maven coordinates | |
Compatible Ceylon release |
JVM: 1.2.x, 1.3.x (latest) JavaScript: Unknown (10/0) |
Published | Oct 2, 2017 |
Stats |
Downloads (JVM): 228 Downloads (JS): 53 Source downloads: 289 |
Description |
specksspecks enables a different way to check that your Ceylon code works. Instead of writing traditional tests, you write specifications. The main difference is the focus: specifications focus on behaviour and outcomes, while unit tests focus on interactions and, most of the time, implementation details. For example, here's a very simple Specification written with testExecutor (`class SpecksTestExecutor`) test shared Specification simpleSpec() => Specification { expectations { expect(max { 1, 2, 3 }, equalTo(3)) } }; > The For more information, visit Specks' GitHub page. |
Dependencies |
ceylon.random/1.3.3
shared
ceylon.test/1.3.3.1
shared
|
Usage |
import com.athaydes.specks "0.7.1"; $ ceylon run com.athaydes.specks/0.7.1 <property name="ceylon.home" value="…"/> <property name="ceylon.ant.lib" value="${ceylon.home}/lib/ceylon-ant.jar"/> <path id="ant-tasks"> <pathelement path="${ceylon.ant.lib}"/> </path> <typedef resource="com/redhat/ceylon/ant/antlib.xml" classpathref="ant-tasks"/> <target name="run"> <ceylon-run module="com.athaydes.specks/0.7.1"/> </target> |
Module links |
Members Imported By Browse Download .car Download .js Download source archive Download module documentation View API documentation |