Chapter 10. Testing your Flex application
This chapter covers
- Unit testing with FlexUnit
- Mock testing with mock-as3
- Leveraging the hamcrest-as3 matchers
- Generating a test report
Every good programming book includes a discussion of unit testing. Whether you follow the practice of test-driven development, which the authors advocate, or write your tests after the fact, an automated suite of unit tests is a valuable accompaniment to your application. A comprehensive suite of unit tests proves to your customer that the code you wrote does what it’s supposed to do. It also provides developers making changes to your code both confidence that the changes will not break anything and up-to-date documentation in the form of unit tests. Written documentation ...