Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test expects error #170

Open
CrazyFlasher opened this issue Jun 19, 2019 · 1 comment
Open

Test expects error #170

CrazyFlasher opened this issue Jun 19, 2019 · 1 comment

Comments

@CrazyFlasher
Copy link

Hi.
Porting my framework to Haxe.
With FlexUnit there was a possibility to expect error from test like this:

                [Test(expects="Error")]
		public function testUnmapClass():void
		{
			factory.mapToType(IMyType, MyType1);
			var o:IMyType = factory.getInstance(IMyType, [5, 7]) as IMyType;
			factory.unmapType(IMyType);
			var o2:IMyType = factory.getInstance(IMyType, [5, 7]) as IMyType;
		}

Is it possible with munit?

@SlavaRa
Copy link
Contributor

SlavaRa commented Jun 19, 2019

Not now, but I worked on the implementation of this functionality.
I have to check the functionality and make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants