Code Monkey home page Code Monkey logo

Comments (16)

mtibben avatar mtibben commented on June 9, 2024 2

@tarlepp you can invoke with fastest "vendor/bin/phpunit {};" to tell fastest what to execute

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024 1

@alexislefebvre could you auto assign this and complete the task of editing documentation + tagging and reopen the issue?

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024

@tarlepp have you a real use case for this?

Becase in composer.json we have the line

"config": {
        "bin-dir": "bin/"
    },

that should create a symlink between bin\phpunit and /vendor/phpunit/phpunit/phpunit

Let me know, thank you.

from fastest.

mtibben avatar mtibben commented on June 9, 2024

If you're using composer the default actually is vendor/bin/phpunit and bin-dir is an override. Maybe it should check the default location first, or get it from composer config bin-dir ?

from fastest.

tarlepp avatar tarlepp commented on June 9, 2024

@DonCallisto eg. in my project https://github.com/tarlepp/symfony-flex-backend I need to add phpunit symlink to my project bin directory, which seems quite weird.

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024

If you're using composer the default actually is vendor/bin/phpunit and bin-dir is an override. Maybe it should check the default location first, or get it from composer config bin-dir ?

@mtibben I know it's an override but we got this in composer.json file so this should work straightforwardly.

Am I missing something?

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024

I've tried an example and, actually, it does not create a symlink itself. I don't think this should be a feature of this project as every vendor could be placed elsewhere and it could be difficult to find out where. I would suggest to stay with this configuration and run fastest as @mtibben suggested, specifying where phpunit bin is located.

If everyone agree, I'll close this.

from fastest.

alexislefebvre avatar alexislefebvre commented on June 9, 2024

@DonCallisto

I know it's an override but we got this in composer.json file so this should work straightforwardly.

Am I missing something?

I think that this part of composer.json is ignored when fastest is installed as a dependency.

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024

@alexislefebvre so, technically, it is useless.

from fastest.

alexislefebvre avatar alexislefebvre commented on June 9, 2024

It may be useful when working on this project or when the Travis CI run tests. We can remove this part and see if tests are broken or not.

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024

@alexislefebvre well, you're right, maybe for travis is a crucial parameter. We can try BTW.

However, do you agree with no modification to public static function getDefaultCommandToExecute()?

I suppose it's not a responsibility of this library to discover where the executable is, especially if you can specify it in CLI.

from fastest.

alexislefebvre avatar alexislefebvre commented on June 9, 2024

However, do you agree with no modification to public static function getDefaultCommandToExecute()?

I agree but if the removal breaks tests suites of fastest users (because the phpunit executable won't be found), this would be a BC break.

We shouldn't do this in a minor version but it can be done on a major version.

from fastest.

DonCallisto avatar DonCallisto commented on June 9, 2024

@alexislefebvre let's keep everything as it is now

from fastest.

alexislefebvre avatar alexislefebvre commented on June 9, 2024

We can still improve the existing documentation by adding the path to phpunit in every example.

And also reopen and tag this issue as an idea for the future major release.

from fastest.

francoispluchino avatar francoispluchino commented on June 9, 2024

With the 1.6.x-dev version, this issue is partially solved. It just misses checking in the vendor/bin directory. I will do a PR for this.

from fastest.

francoispluchino avatar francoispluchino commented on June 9, 2024

Added in the v1.6.0 version.

from fastest.

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.