How to run Flex unit tests from the command line o

2019-06-01 17:57发布

问题:

I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner.

What are my options?

回答1:

Folks seem to use something called xvfb. I haven't tried this solution myself so I'll just give you the links to the revelant articles I know :

http://www.benlondon.co.uk/2010/02/running-flexunit-09-tests-on-headless.html

http://life.neophi.com/danielr/2007/12/headless_linux_automated_flexu.html

http://www.brianlegros.com/blog/2009/12/20/using-xvnc-to-create-headless-ci-builds-for-flex-and-air-applications/

http://www.brianlegros.com/blog/2010/01/19/flexunit-and-continuous-integration-updates/