flexunit4

Is it OK to have multiple assertions in a unit test when testing complex behavior?

巧了我就是萌 提交于 2019-12-30 15:03:12
问题 Here is my specific scenario. I have a class QueryQueue that wraps the QueryTask class within the ArcGIS API for Flex. This enables me to easily queue up multiple query tasks for execution. Calling QueryQueue.execute() iterate through all the tasks in my queue and call their execute method. When all the results have been received and processed QueryQueue will dispatch the completed event. The interface to my class is very simple. public interface IQueryQueue { function get inProgress()

Jenkins CI server setup for Adobe AIR app (With FlexUnit4 and GitHub as repo)

倾然丶 夕夏残阳落幕 提交于 2019-12-07 13:04:55
问题 I have an Adobe AIR app written with Robotlegs 1.5.2. The unit test framework used is FlexUnit4. I already have a Jenkins CI setup for projects written with CakePHP 2.x and unit test framework of PHPUnit. My Jenkins CI server is on Ubuntu 11.10 on Rackspace. I intend to use the same Jenkins server for the Adobe AIR app project. I am using git and github and do not intend to switch to maven. I found this tutorial, but it looks very intimidating and it was written in 2011. I wonder if there is

Is it OK to have multiple assertions in a unit test when testing complex behavior?

泄露秘密 提交于 2019-12-01 13:44:38
Here is my specific scenario. I have a class QueryQueue that wraps the QueryTask class within the ArcGIS API for Flex. This enables me to easily queue up multiple query tasks for execution. Calling QueryQueue.execute() iterate through all the tasks in my queue and call their execute method. When all the results have been received and processed QueryQueue will dispatch the completed event. The interface to my class is very simple. public interface IQueryQueue { function get inProgress():Boolean; function get count():int; function get completed():ISignal; function get canceled():ISignal;