Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

What is a Test?

A Test, "Unit Test," or TestMethod is the basic element of the entire FlexUnit framework. Simply put, it is a method meant to verify the expected behavior of a very narrow use case of a class, a global method, or any bit of isolatable code, providing a simple pass/fail result. In its most basic form, it is made up of two parts:

...

  • Global variables that will be used in most or all tests (ex: components you're testing against)
  • Additional FlexUnit 4.x functionality that applies across multiple tests (Note: These include advanced features beyond the purview of this section), like:
    :-Before/After
    :-BeforeClass/AfterClass
    :-Rules
  • Specifying a custom runner to use for the tests

...