When I started looking into how we could use flexunit in our CI build, I was struck by how the UI is closely linked to the actual running of the test suite. I really wanted to be able to use the supplied flexunit GUI out of the box – after all, it does everything the developer needs, and yet in order to have the results understood by our build process, we would need the results printed out differently.
To acheive this, my Flexunit test harness uses a factory method pattern to decide how torunthe test suite. Here’s how…