DIR : /home/kozerus/public_html/go/dgs0/scripts/tests/README.test

/home/kozerus/public_html/go/dgs0/scripts/tests

#
# Test-Suite requires PHP-version >= 5
#

# run test
# - use -d option to set PHP-ini 'include_path' or
# - change "include_path" in php.ini for php-CLI (command-line, not for Apache)
#   could be: /etc/php5/cli/php.ini
#   add DGS-basepath, so that phpunit find relative includes
# - if you have multiple versions in different root-directories, you can not use
#   the global php.ini file to configure the include-path for phpunit.
#   Instead you either have to use the '-d' option as mentioned above or you have
#   to pass the include-path when calling phpunit. This works with newer version
#   of the phpunit-package.
# - use --verbose option to print more test-"debug"
cd <testdir>
phpunit testclass.php
   or
phpunit -d include_path=.:/myhome/dgs-root-dir  testclass.php

# create phpunit test-skeleton from existing class
cd <DGS-basepath>
phpunit --skeleton BitSet include/classlib_bitset.php
mv BitSetTest.php to scripts/tests/
# adjust to DGS-layout (3 space indent)

# run test-class generated with phpunit --skeleton:
php testclass.php

# -------------------------------------------
# run all tests of DGS-test-suite with (a), (b) or (c):
# - also see http://www.phpunit.de/manual/3.0/en/organizing-test-suites.html
# - assumes preceeding   'cd <DGS-basepath>/scripts/tests'
#
# (a): using PHP-cli
php run_tests.php

# (b): using PHPUnit
phpunit AllTests.php

# (c): using Makefile
make
  or
make test


//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer