On Mon, Oct 17, 2011 at 12:48 AM, majna <[email protected]> wrote:
> try to uncomment this line
> https://github.com/cakephp/cakephp/blob/2.0/app/Config/core.php#L95
>
> or play with Configure::write('App.baseUrl', env('SCRIPT_NAME')); in
> test.php,
> I don't know...

I started to read TestSuite internals and find out that
$_SERVER['PHP_SELF'] was set to index.php instead of test.php; then I
checked cakephp-instaweb source code and noticed that there was a line
explicitly setting the 'SCRIPT_NAME' environment variable; without
that line, I was finally able to run tests from the browser: YAY!

One last question: while testing SQLite databases with cake, where are
they supposed to be found? Each time I run `Console/cake testsuite app
etc.' from the app directory, I always end up with an error (unable to
connect to one of the tested tables); moreover two databases are
created in the current directory, with names as set inside
Config/database. On the other hand, from the browser everything works
flawlessly. Have you got any hint about where to spot possible
configuration errors?


Regards,
Matteo

PS. for what is worth, I forked cakephp-instaweb and added support for
both cakephp2.0 and the testsuite; check it out:
https://github.com/iamFIREcracker/cakephp-instaweb

>
> Maybe you should open issue on "cakephp-instaweb" github.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
>



-- 
http://www.matteolandi.net/

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to