Just recently I stumbled across and amusing viewpoint on testing. The Way of Testivus is an interesting slant on encouraging testing karma instead of testing dogma. It’s a fun and short read.
Posts tagged "testing"
server: http://localhost:4224 load: - bin/*.js timeout: 90
The tests are then ran by calling the same jar file: java -jar JsTestDriver-1.3.2.jar –tests all
In my proof of concept, I was able to quickly get 8 browsers, (4 Windows browsers, 2 Mac browsers, iPad Safari, and iPhone Safari), up and running for testing against. The Unit Test itself was a very basic Hello World test. The command took more time initializing the jvm & connections than the actual unit tests, which only took 26ms to run across all of the browsers/devices.
Joshua@Quake ~/js-test-driver $ java -jar JsTestDriver-1.3.2.jar --tests all ........ Total 8 tests (Passed: 8; Fails: 0; Errors: 0) (1.00 ms) Safari 533.21.1 Windows: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (0.00 ms) Safari 6533.18.5 iPhone OS: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (1.00 ms) Firefox 4.0.1 Windows: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (1.00 ms) Firefox 4.0.1 Mac OS: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (0.00 ms) Safari 6533.18.5 Mac OS: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (1.00 ms) Chrome 12.0.742.100 Windows: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (0.00 ms) Safari 533.21.1 Mac OS: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (1.00 ms) Microsoft Internet Explorer 9.0 Windows: Run 1 tests (Passed: 1; Fails: 0; Errors 0) (0.00 ms) Joshua@Quake ~/js-test-driver $
First let me introduce myself. My name is Joshua Garnett. I joined Adobe last fall as a Computer Scientist on the Flash Platform Services Team. I’m currently working on the InMarket app distribution service. If you’re an app developer and looking to simplify your deployment process, you should definitely check it out.
Now on to the actual reason behind this post. Recently I was tasked with getting FlexUnit tests to run in our CI environment. There is a lot of documentation out there on how to get things up and running on Hudson, but I wasn’t able to find a fool-proof method for those of us who just want to use an ant build script to run the tests. This is a brief summary of the items that need to be setup and installed in order to do just that.
Here is the software that I ended up using:
- CentOS 5.5
- Flex 18.104.22.16883 SDK
- Ant 1.7.0
- FlexUnit 4.1 RC2 for Flex 3.5 – Note, I ran into issues getting things working with FlexUnit 4.0, that is why I ended up using the RC for Flex 4.1