Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get [Codeception\Exception\Configuration] Mink could not be found and loaded when I run php codecept.phar run #388

Closed
simkimsia opened this issue Jun 24, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@simkimsia
Copy link

commented Jun 24, 2013

I installed a vm ubuntu guest OS.

My app is running from the browser in my host OS at the url

http://abc.localhost:8888

I type
php codecept.phar run in the guest OS terminal.

I get the following error:

[Codeception\Exception\Configuration]  
  Mink could not be found and loaded  

My acceptance.yml says

# Codeception Test Suite Configuration

# suite for acceptance tests.
# perform tests in browser using the Selenium-like tools.
# powered by Mink (http://mink.behat.org).
# (tip: that's what your customer will see).
# (tip: test your ajax and javascript by one of Mink drivers).

# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.

class_name: WebGuy
modules:
    enabled:
        - PhpBrowser
        - WebHelper
        - Mink
    config:
        PhpBrowser:
           url: 'http://abc.localhost:8888'

I have tried with and without the 8888 in the acceptance.suite.yml. I get the same error.

Please advise.

@victorb

This comment has been minimized.

Copy link

commented Jun 24, 2013

Correct me if I'm wrong but I don't think there is no module for Mink. What
are you trying to do with Mink that you cannot do with PhpBrowser?
On Jun 24, 2013 11:31 AM, "simkimsia" notifications@github.com wrote:

I installed a vm ubuntu guest OS.

My app is running from the browser in my host OS at the url

http://abc.localhost:8888

I type
php codecept.phar run in the guest OS terminal.

I get the following error:

[Codeception\Exception\Configuration]
Mink could not be found and loaded

My acceptance.yml says

Codeception Test Suite Configuration

suite for acceptance tests.# perform tests in browser using the Selenium-like tools.# powered by Mink (http://mink.behat.org).# (tip: that's what your customer will see).# (tip: test your ajax and javascript by one of Mink drivers).

RUN build COMMAND AFTER ADDING/REMOVING MODULES.

class_name: WebGuymodules:
enabled:
- PhpBrowser
- WebHelper
- Mink
config:
PhpBrowser:
url: 'http://abc.localhost:8888'

I have tried with and without the 8888 in the acceptance.suite.yml. I get
the same error.

Please advise.


Reply to this email directly or view it on GitHubhttps://github.com//issues/388
.

@simkimsia

This comment has been minimized.

Copy link
Author

commented Jun 25, 2013

I am just trying to run the following:

$I = new WebGuy($scenario);
$I->wantTo('ensure that the indexpage works');
$I->amOnPage('/');
//$I->seeElement('div.bannerHolder');
//$I->seeElement('div.theme-default');
//$I->seeElement('div.bannerHolder.theme-default');
//$I->seeElement('div.featuredProducts');
//$I->seeElement('.contentArea');

@simkimsia

This comment has been minimized.

Copy link
Author

commented Jun 25, 2013

I figured out the problem.

I needed to set the /etc/hosts in my guest vm as well.

Solution here.

  1. SSH into guest VM.
  2. sudo nano /etc/hosts
  3. Add in the following 127.0.0.1 abc.localhost
  4. Ensure acceptance.yml is correct.
# Codeception Test Suite Configuration

# suite for acceptance tests.
# perform tests in browser using the Selenium-like tools.
# powered by Mink (http://mink.behat.org).
# (tip: that's what your customer will see).
# (tip: test your ajax and javascript by one of Mink drivers).

# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.

class_name: WebGuy
modules:
    enabled:
        - PhpBrowser
        - WebHelper
    config:
        PhpBrowser:
           url: 'http://abc.localhost'

Then you run the command

php codecept.phar run 

inside your guest vm

@simkimsia simkimsia closed this Jun 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.