afAxontExt

Test runner and assertion functions for Axon
afAxontExt

Registered users on StackHub may elect to receive email notifications whenever new package versions are released.

v0.0.6

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

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!

Release Notes

v0.0.6

  • Chg: Renamed extension from axont to afAxont for consistency with other Alien-Factory products.

v0.0.4

  • New: Added setup and teadown to runTests() options.
  • New: Created alien icon for ext.
  • Chg: verifyErr returns the err msg should you wish to perform further (regex) tests on it.

v0.0.2

  • New: Preview release, created to test Axonator - the Axon source code encryptor and obfuscator.
Published by Fantom Factory

Products & Services by Fantom Factory

Packages by Fantom Factory

Commercial packages

Free packages

Pricing options
afAxontExt
Test runner and assertion functions for Axon
FREE
Download now
Also available via SkyArc Install Manager
Package details
Version0.0.6Alpha
LicenseISC
Repositorybitbucket.org
Build date1 year ago
on 8th Nov 2017 10:29:28 UTC
Depends on
File nameafAxontExt.pod
File size16.33 kB
MD57417f880760c729c8eec21e4078f9406
SHA1 e8ba953addb83c0a13a7da045721612ebc692c83
Published by
Fantom FactoryDownload now
Also available via SkyArc Install Manager
Tags
Fantom Pod
Axon Funcs
Sky Arc Ext