Flexunit and asmock running test and code coverage

Hello

Just two quesions in regards to flexunit and asmock.

1) I can run test suites with no problems but can't seem to run just one test case at a time. Must have forgotten to do something somewhere...

See error:
ReferenceError: Error #1065: Variable mx.utils::ObjectUtil is not defined.
 at org.flexunit.runner::Description/equals()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\Description.as:206]
 at Function/<anonymous>()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\Request.as:123]
 at org.flexunit.runner.manipulation.filters::DynamicFilter/shouldRun()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\manipulation\filters\DynamicFilter.as:62]
 at org.flexunit.runners::ParentRunner/shouldRun()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runners\ParentRunner.as:531]
 at org.flexunit.runners::ParentRunner/filter()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runners\ParentRunner.as:554]
 at org.flexunit.runner.manipulation.filters::AbstractFilter/apply()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\manipulation\filters\AbstractFilter.as:39]
 at org.flexunit.internals.requests::FilterRequest/get iRunner()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\internals\requests\FilterRequest.as:70]
 at org.flexunit.runner::FlexUnitCore/runRequest()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\FlexUnitCore.as:283]
 at org.flexunit.runner::FlexUnitCore/runClasses()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\FlexUnitCore.as:267]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at org.flexunit.runner::FlexUnitCore/run()[E:\hudson\jobs\FlexUnit4-Flex4.1\workspace\FlexUnit4\src\org\flexunit\runner\FlexUnitCore.as:245]
 at com.intellij.flexunit.runner::TestRunner4/runTests()[C:\work\IDEA\flex\tools\flexunit-support\FlexUnit4Runner\src\com\intellij\flexunit\runner\TestRunner4.as:39]
 at com.intellij.flexunit.runner::TestRunnerBase/socketConnected()[C:\work\IDEA\flex\tools\flexunit-support\PureAs\src\com\intellij\flexunit\runner\TestRunnerBase.as:249]

2) Is the code coverage availble for flexunit? The button is currently disabled but I thought I read somewhere that it is available.


Thanks!
2 comments

1. Running single test method in pure ActionScript projects is not possible. See http://youtrack.jetbrains.com/issue/IDEA-88208
2. Unfortunately code coverage for FlexUnit is not supported.

0

ah i see.
i'll be keeping an eye out for those features! would be awesome :)

thanks!

0

Please sign in to leave a comment.