GetSky / pherlin

Skeleton for develop Phalcon applications
MIT License
24 stars 5 forks source link

Codeception not running #9

Open Verhaeg opened 10 years ago

Verhaeg commented 10 years ago

Hi,

Was trying to run the codeception, but I'm getting this error:

~/www/pherlin/public:
○ → ../vendor/bin/codecept run --config ../tests/codeception/

[InvalidArgumentException]                                                     
The "/home/verhaeg/www/pherlin/tests/codeception/\" directory does not exist.  

run [-c|--config="..."] [--report] [--html[="..."]] [--xml[="..."]] [--tap[="..."]] [--json[="..."]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage[="..."]] [--coverage-html[="..."]] [--coverage-xml[="..."]] [--coverage-text[="..."]] [--no-exit] [-g|--group="..."] [-s|--skip="..."] [-sg|--skip-group="..."] [--env="..."] [-f|--fail-fast] [suite] [test]

but the folder is there..can you help me with this please?

GetSky commented 10 years ago

Hi! Perhaps, the permissions to the folder are incorrect. I will check my suggestion on Ubuntu.

You can try to exclude this cause:

~/www/pherlin
○ → chmod -R 777 tests/ 
Verhaeg commented 10 years ago

sill no good =/

chmod 777 tests -R

didn't lead me anywhere... wil check what codeception generates in a new project and check possible differences..

thanks so far ;)

GetSky commented 10 years ago

Ok. I understood you. I'll watch it on Monday.

Verhaeg commented 10 years ago

Just as a note... the problem seemed to be the value for paths: "\" at least in Ubuntu it does not recognize this as the current path...

I managed to go one step further by moving tests/codeception/codeception.yml to tests/codeception.yml and fix the paths.. but now I have a different issue:

[Codeception\Exception\ModuleConfig]                              
Phalcon1 module is not configured!                                
Bootstrap file does not exist in ../../public/codeception.php     
Please create the bootstrap file that returns Application object  
And specify path to it with 'bootstrap' config                    
Sample bootstrap:                                                 
<?php                                                             
$config = include __DIR__ . "/config.php";                        
include __DIR__ . "/loader.php";                                  
$di = new \Phalcon\DI\FactoryDefault();                           
include __DIR__ . "/services.php";                                
return new \Phalcon\Mvc\Application($di); 

will try some more later...

GetSky commented 10 years ago

I fixed it. See: https://github.com/JimmDiGrizli/pherlin/commit/b7b217f175a0521ae9ce237279906a92c8a11512

And you can check the following configuration:

actor: Dev
paths:
    tests: ./
    log: ./_log
    data: ./_data
    helpers: ./_helpers
settings:
    bootstrap: _bootstrap.php
    colors: true
    memory_limit: 1024M
    log: true
modules:
    config:
        Db:
            dsn: ''
            user: ''
            password: ''
            dump: /_data/dump.sql
Verhaeg commented 10 years ago

Great!! thanks a lot!! I now have my own issues to solve here hehe ;)

thanks for this project as well ;)

GetSky commented 10 years ago

Thank you! I'll be waiting;)

Verhaeg commented 10 years ago

Yay.. all working so far :smile: my findings and changes:

so probably the main reason for me was the path it wasn't considering properly.. after that only minor stuff from configuration ;)

great work

Verhaeg commented 10 years ago

started the project with tag 1.4.2 and changed codeception.yml to:

paths:
    tests: ''
    log: _log
    data: _data
    helpers: _helpers

with this it works nicely ;)