Unit testing Flex / Flash libraries in FlashBuilder

For a regular Flash / Flex application, I would include my unit tests in my application project (possibly in the source test folder along with my main src folder). Then I have two application entry points: the application, and it checks.

How do people do this for their Flex Library projects? You know what the SWC file creates. As far as I can tell, you cannot set an executable entry point for these projects (to run tests).

+3
source share
4 answers

In Flash Builder 1 itself, you can record and run Flexunit tests from a library project.

IDE FlexUnit , , "Execute Flex Unit Tests". , FB. .

+1

Flash Builder Flex/AIR, . Flex + .

/:

  • Flex, + debug
  • , Flex. Flex, .
  • "libs" Flex, swc, Flex-.

  • Flex - > , , .

  • Flex
  • : ! .
  • , , , . , swc.

.

+6

, mx: Application , , , .

SWC? ( , , -, , SWC , , - )

+2

There is currently no way to test the library project. You must have the application as an entry point to the tests. This would be a great feature for Flash Builder 4.

+1
source

Source: https://habr.com/ru/post/1716498/


All Articles