Appliction test after fresh clone not working
Notice: This thread is very old.
- esorimer
- Member | 114
Hi,
I have tried create a pull request according to this: https://doc.nette.org/…ibuting/code
I created a fresh clone, installed tester and run it with this result:
$ git clone https://github.com/myname/application.git
$ cd application
$ git checkout -b 'new-branch'
$ composer install
vendor/bin/tester .
_____ ___ ___ _____ ___ ___
|_ _/ __)( __/_ _/ __)| _ )
|_| \___ /___) |_| \___ |_|_\ v1.4.0
Note: No php.ini is used.
PHP 5.6.1 | php-cgi | 8 threads
..........F.....F.FF...F.FFFFFF.FFFFFF....................................................F..F.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFsFFFFF.F.....................F.................s....FFF.FFFFFFFF.FFF.FFFFFFFF.FF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.
-- FAILED: NetteModule\MicroPresenter | tests/Application/MicroPresenter.response.phpt
Exited with error code 255 (expected 0)
Fatal error: Call to undefined function Latte\token_get_all() in /home/petr/public_html/nette/application/vendor/latte/latte/src/Latte/Helpers.php on line 48
-- FAILED: TemplateFactory filters | tests/Application.Latte/TemplateFactory.filters.phpt
Exited with error code 255 (expected 0)
E_NOTICE: Use of undefined constant ICONV_IMPL - assumed 'ICONV_IMPL'
in src/Utils/Strings.php(180)
in src/Utils/Strings.php(210) Nette\Utils\Strings::toAscii()
in [internal function]Nette\Utils\Strings::webalize()
in src/Latte/Engine.php(276) call_user_func_array()
in tests/Application.Latte/TemplateFactory.filters.phpt(48) Latte\Engine->invokeFilter()
....
many other errors here
....
- esorimer
- Member | 114
$ vendor/bin/tester -c /etc/php5/cli/php.ini .
_____ ___ ___ _____ ___ ___
|_ _/ __)( __/_ _/ __)| _ )
|_| \___ /___) |_| \___ |_|_\ v1.4.0
PHP 5.6.1 | php-cgi -c '/etc/php5/cli/php.ini' | 8 threads
..........................................................................................FFF..FF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.F..........................F..................s...FF.FFFFF.FFFFFFFFFFFFF..FF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.
-- FAILED: Latte\Runtime\CachingIterator basic usage. | tests/Latte/CachingIterator.basic.phpt
Exited with error code 1 (expected 0)
Install Nette Tester using `composer update --dev`
-- FAILED: Latte\Runtime\CachingIterator constructor. | tests/Latte/CachingIterator.construct.phpt
Exited with error code 1 (expected 0)
Install Nette Tester using `composer update --dev`
-- FAILED: Latte\Compiler and htmlNode. | tests/Latte/Compiler.htmlNode.phpt
Exited with error code 1 (expected 0)
Install Nette Tester using `composer update --dev`
-- FAILED: Latte\Runtime\CachingIterator width. | tests/Latte/CachingIterator.width.phpt
Exited with error code 1 (expected 0)
Install Nette Tester using `composer update --dev`
-- FAILED: Latte\Compiler and macro methods calling order. | tests/Latte/Compiler.macroMethodsCallingOrder.phpt
Exited with error code 1 (expected 0)
Install Nette Tester using `composer update --dev`
.....
many similar errors
.....
The same with vendor/bin/tester -c /etc/php5/cli/php.ini .
I have tried composer update --dev
, no change :(
- enumag
- Member | 2118
Oh wait you didn't specify the directory in which tester should search for the tests. That's what the “tests” part in my command above is. You certainly don't want to use “.” because that will search the whole vendor dir as well. Which is why you're getting these errors.
Last edited by enumag (2015-04-01 15:52)
- esorimer
- Member | 114
I have tried this:
$ ./vendor/bin/tester -c ./php.ini tests/
PHP Warning: Module 'iconv' already loaded in Unknown on line 0
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: Module 'tokenizer' already loaded in Unknown on line 0
_____ ___ ___ _____ ___ ___
|_ _/ __)( __/_ _/ __)| _ )
|_| \___ /___) |_| \___ |_|_\ v1.4.0
PHP 5.6.1 | php-cgi -c '/home/petr/public_html/nette/application/php.ini' | 8 threads
.............................................................................................
OK (93 tests, 1.6 seconds)
That looks OK, right?
- esorimer
- Member | 114
Thanks for help. Maybe someone should fix https://doc.nette.org/…ibuting/code#… :-)