Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
myurasov committed Apr 22, 2016
1 parent 15dcd4a commit 6e751e5
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions dist/impUnit.nut
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* impUnit Test Framework
*
* @author Mikhail Yurasov <[email protected]>
* @version 0.4.3
* @version 0.5.0
* @package ImpUnit
*/

Expand Down Expand Up @@ -379,12 +379,13 @@ function __module_impUnit(Promise, JSONEncoder) {

// message types
local ImpUnitMessageTypes = {
sessionStart = "SESSION_START", // session start
testStart = "TEST_START", // test start
info = "INFO", // info message
debug = "DEBUG", // debug message
testOk = "TEST_OK", // test success
testFail = "TEST_FAIL", // test failure
testStart = "TEST_START", // test start
sessionStart = "SESSION_START", // session start
sessionResult = "SESSION_RESULT", // session result
debug = "DEBUG", // debug message
externalCommand = "EXTERNAL_COMMAND" // external command
}

Expand All @@ -393,6 +394,8 @@ local ImpUnitMessageTypes = {
*/
local ImpUnitMessage = class {

static version = [0, 5, 0];

type = "";
message = "";
session = "";
Expand Down Expand Up @@ -435,6 +438,8 @@ local ImpUnitMessage = class {
*/
local ImpTestCase = class {

static version = [0, 5, 0];

runner = null; // runner instance
session = null; // session name
assertions = 0;
Expand All @@ -451,6 +456,18 @@ local ImpTestCase = class {
);
}

/**
* Output an info message
* @param {*=""} message
*/
function info(message = "") {
this.runner.log(
ImpUnitMessage(ImpUnitMessageTypes.info, {
"message": message
})
);
}

/**
* Assert that something is true
* @param {bool} condition
Expand Down Expand Up @@ -625,6 +642,8 @@ local ImpTestCase = class {
*/
local ImpUnitRunner = class {

static version = [0, 5, 0];

// options
timeout = 2;
readableOutput = true;
Expand Down

0 comments on commit 6e751e5

Please sign in to comment.