afAxontExt icon

afAxontExt

Unit test runner and assertion functions for Axon
afAxontExt

Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.

There are 2 watchers.

v0.1.0

An extension for SkySpark v3.1.1+ that provides a unit test runner and assertion functions for testing Axon code.

AxonT source code is available on Fantom Factory's GitHub - AxonT.

Quick Start

First create some test functions in Axon. Test functions are typically prefixed with test, take no arguments, and optionally return okay to signify just that.

testPassExample : () => do
  expected : "foo bar"
  actual   : "foo bar" // this bit should do some work!

  // assert the result
  verifyEq(expected, actual)

  "okay"
end

testFailExample : () => do
  expected : "foo bar"
  actual   : "poo"

  // assert the result
  verifyEq(expected, actual)

  "okay"
end

Then pass them to the test runner to have them executed.

// run tests
[
  testPassExample,
  testFailExample
].runTests()

Results are returned in a handy grid:

Axont Result Grid

Licensing

AxonT Ext is free software and an open source project licensed under the permissive ISC Licence by the Internet Systems Consortium - it is similar to the popular MIT licence, only shorter!

Published by Fantom Factory

Products & Services by Fantom Factory

Packages by Fantom Factory

Commercial packages

Free packages

Package details
Version0.1.0
LicenseISC
Repositorybitbucket.org
Build date2 years ago
on 1st Mar 2022
Requirements SkySpark v3.1.1
Depends on
File nameafAxontExt.pod
File size18.49 kB
MD5efdbf2a0e108b94fd50d847c523a9a52
SHA1 7530edd43b7ac08173d90f361c4515fc8806c281
Published by
Fantom FactoryDownload now
Also available via SkyArc Install Manager
Tags
Axon
Sky Spark