Skip to content

API to expose test results #75

@RealyUniqueName

Description

@RealyUniqueName

Currently, there is no way to access test results.
Something like this is needed:

public var success(default,null):Bool;
public getFailures():FailuresData;

maybe as an addition to utest.ui.common.IReport

Requested here:

#if js
	static function nodejsMain() {
		main();
		(untyped process).exit(Test.success ? 0 : 1);
	}
	#end

I couldn't immediately find how to get the success state of the tests.
(quote from HaxeFoundation/haxe#7901 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions