noor 0.1.0

Noor is a cross-platform unit-testing framework for Haxe. It builds on the shoulders of the fantasic munit, and introduces fluent methods and additional assertions.

Released 2016-04-07.

To install, run:

haxelib install noor 0.1.0

See using Haxelib in Haxelib documentation for more information.

Maintainerashes999
Websitehttps://github.com/ashes999/noor
Current version0.1.0
StatisticsInstalled 28 times
LicenseMIT
Tags testing

README.md

logo

Noor build status

Noor is a cross-platform unit-testing framework for Haxe. It builds on the shoulders of the fantasic munit, and introduces "fluent" methods and additional assertions.

Installation

  • Install MassiveUnit via haxelib install munit
  • Install noor via haxelib install noor
  • Run haxelib run munit setup in your project folder, and fill in appropriate values
  • Add build and report to .gitignore (or .hgignore)
  • Write tests.
  • Run tests.
  • Profit.

Functionality

using noor.Assert;
using noor.Is;

Assert.isTrue(items.count == 4, 'Expected 4 items but got ${items.count}');
Assert.that(items[0].Name, Is.equalTo("apple"));

var message:String = Assert.throws(function()
{
  var apple = items[0];
  eat(apple);
});

Assert.that(message.indexOf("too hard") > -1);