flexunit

JUnit Eclipse plugin source-code?

帅比萌擦擦* 提交于 2019-12-30 08:26:08
问题 I'm looking into writing an Eclipse plugin for FlexUnit and was wondering where I could get the sources for the JUnit Eclipse plugin. I checked the JUnit sources at sourceforge but couldn't spot any code that looked like the plugin code. Any idea where this code is available? 回答1: You can find it on Eclipse's repository: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pde.junit/ 回答2: There are now git mirrors of the CVS repositories: org.eclipse.jdt.junit: git://dev.eclipse.org/org

How do I get Flexunit, FlexMojos and Mockolate to work together?

痴心易碎 提交于 2019-12-13 22:12:35
问题 For the past two days, I've been trying to get get FlexUnit, FlexMojos, and Mockolate to work together so that I can run tests in TeamCity, but I have not been having any luck. I have one project on Teamcity currently that uses FlexMojos and the FlexMojos-flexunit that works, however that project is not using Mockolate. The pom for that project looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

Unit Testing questions

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:15:08
问题 I just start to study Unit Testing (using FlexUnit). I still have not sure how to use them. I created a new flex project, and created a class named Car . Then, I created a TestCase class, for Car class. This is the default template that FlexBuilder gave to me, and I put some traces. package flexUnitTests { import flexunit.framework.Assert; public class CarTest { [Before] public function setUp():void { trace('before test function'); } [After] public function tearDown():void { trace('after test

FlexUnit ANT task is hanging

心不动则不痛 提交于 2019-12-11 03:05:58
问题 I'm using the ANT task to run FlexUnit on a build server. When I run the Flex Unit Tests from the Flash Builder (4) it works fine. But when running from ANT it opens the default player (FireFox in my case), runs the FU successfully but never returns to the command line. Eventually I get a " java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report " exception because the FU never returns. What could be the problem? <flexunit swf="${APP_TEST_FILE_SWF}" toDir="${OUTPUT

How to run Flex unit tests from the command line on Linux?

扶醉桌前 提交于 2019-12-08 09:27:03
问题 I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner. What are my options? 回答1: Folks seem to use something called xvfb. I haven't tried this solution myself so I'll just give you the links to the revelant articles I know : http://www.benlondon.co.uk/2010/02/running-flexunit-09-tests-on-headless.html http://life.neophi.com/danielr/2007/12/headless_linux_automated_flexu.html http

How to run Flex unit tests from the command line on Linux?

只谈情不闲聊 提交于 2019-12-08 04:59:27
I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner. What are my options? Florian F Folks seem to use something called xvfb. I haven't tried this solution myself so I'll just give you the links to the revelant articles I know : http://www.benlondon.co.uk/2010/02/running-flexunit-09-tests-on-headless.html http://life.neophi.com/danielr/2007/12/headless_linux_automated_flexu.html http://www.brianlegros.com/blog/2009/12/20/using-xvnc-to-create-headless-ci-builds-for-flex-and-air

Flex, Flexunit: How to test that an event is dispatched twice?

筅森魡賤 提交于 2019-12-07 15:14:19
问题 I'm testing some event dispatch code in a Flex app, using FlexUnit's addAsync method for testing that events are dispatched. Great so far, I can ensure that at least one event was fired. However, I want to be a bit more detailed; I want to ensure that exactly the set of events I'm expecting are dispatched. Is there a useful test pattern (or, even, different test framework -- I'm flexible!) to accomplish this? I tried this code, but it doesn't seem to get invoked the second time: protected

Flex, Flexunit: How to test that an event is dispatched twice?

别等时光非礼了梦想. 提交于 2019-12-06 00:37:54
I'm testing some event dispatch code in a Flex app, using FlexUnit's addAsync method for testing that events are dispatched. Great so far, I can ensure that at least one event was fired. However, I want to be a bit more detailed; I want to ensure that exactly the set of events I'm expecting are dispatched. Is there a useful test pattern (or, even, different test framework -- I'm flexible!) to accomplish this? I tried this code, but it doesn't seem to get invoked the second time: protected function expectResultPropertyChange(event: Event, numberOfEvents: int = 1): void { trace("Got event " +

Automating QA on Flex Application [closed]

[亡魂溺海] 提交于 2019-12-03 06:30:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have a Flex Application that needs to be tested and our QA department is really adament on using some form of automated-testing

JUnit Eclipse plugin source-code?

吃可爱长大的小学妹 提交于 2019-12-01 03:44:32
I'm looking into writing an Eclipse plugin for FlexUnit and was wondering where I could get the sources for the JUnit Eclipse plugin. I checked the JUnit sources at sourceforge but couldn't spot any code that looked like the plugin code. Any idea where this code is available? You can find it on Eclipse's repository: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pde.junit/ There are now git mirrors of the CVS repositories: org.eclipse.jdt.junit: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.git org.eclipse.jdt.junit.core: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse