Code Monkey home page Code Monkey logo

Comments (4)

lucatume avatar lucatume commented on June 12, 2024 1

The wpcept command is installed in the vendor folder and you can run it using:

./vendor/bin/wpcept

I've added the vendor/bin path to the $PATH to be able simply write wpcept

from wp-browser.

lucatume avatar lucatume commented on June 12, 2024

You should not need to do anything: the bin instruction in WPBrowser composer.json file should take care of that.
Some questions to help me debug the issue:

  1. have you installed Codeception globally or locally to the project?
  2. are you on a *nix machine or Windows?

from wp-browser.

montrealist avatar montrealist commented on June 12, 2024
  1. Installed globally with "Install PHAR globally" instructions on codeception.com/quickstart
  2. Mac OS X 10.11.5

Yes, I see the 'bin' param in composer.json, not sure why it's not kicking in. I ran composer require --dev lucatume/wp-browser in a plugin root folder (/wp-content/my-plugin). Is there a special way to bootstrap Codeception (before configuring it as per your instructions)?

from wp-browser.

montrealist avatar montrealist commented on June 12, 2024

But of course!.. I somehow assumed it was going to happen magically. The following line in .bash_profile enables me to run the command from inside any directory containing the composer.json that includes this project:

export PATH="./vendor/bin:$PATH"

Thank you very much! Closing this.

from wp-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.