From e76b7bca2d4c8020723fb5bb96c30487cb9cfe2e Mon Sep 17 00:00:00 2001 From: Dlean Jeans Date: Tue, 18 Jul 2017 20:47:31 +0700 Subject: [PATCH] Add @AsyncDebugTest --- src/massive/munit/TestClassHelper.hx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/massive/munit/TestClassHelper.hx b/src/massive/munit/TestClassHelper.hx index db4b4a2..55cbf5f 100644 --- a/src/massive/munit/TestClassHelper.hx +++ b/src/massive/munit/TestClassHelper.hx @@ -91,6 +91,8 @@ class TestClassHelper * Meta tag marking test method in class for execution in debug mode only. */ public inline static var META_TAG_TEST_DEBUG:String = "TestDebug"; + + public inline static var META_TAG_ASYNC_TEST_DEBUG:String = "AsyncTestDebug"; /** * Array of all valid meta tags. @@ -101,7 +103,8 @@ class TestClassHelper META_TAG_AFTER, META_TAG_TEST, META_TAG_ASYNC_TEST, - META_TAG_TEST_DEBUG]; + META_TAG_TEST_DEBUG, + META_TAG_ASYNC_TEST_DEBUG]; /** * The type of the test class this helper is wrapping. @@ -312,6 +315,9 @@ class TestClassHelper case META_TAG_TEST_DEBUG: if (isDebug) addTest(fieldName, func, test, isAsync, isIgnored, description); + case META_TAG_ASYNC_TEST_DEBUG: + if (isDebug) + addTest(fieldName, func, test, true, isIgnored, description); } } }