phantomQunitPlugin - 1.0.1
You are currently browsing
the website for symfony 1
|Joshua Nankin||lead||moc.eekhsik <<ta>> hsoj|
Copyright (c) 2011 Admorphous, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
There's really not much to configure, however you can change the location of your js tests by editing phantomQunit.yml in the plugin's config directory.
There is an object called
phantomQunitUtils that you can access from your Qunit tests.
phantomQunitUtils gives you:
ROOT_DIR- the path to the root directory of your project
./symfony phantomQunit:run moduleName/testA
To generate a JUnit xml:
./symfony phantomQunit:run --xml=log/qunit_tests.xml
Make sure to run
export DISPLAY=:0 before running your qunit tests on a machine with no X but with xvfb installed.
(This should be run on every hudson build.)
You may have to make hudson an xuser if it tells you it can't find a display at :0 -