Giter Club home page Giter Club logo

Comments (11)

jadjoubran avatar jadjoubran commented on May 13, 2024

Hi @masterpowers

Sure thing.

From this error log fragment: '.\vendor\bin\phpunit' is not recognized as an internal or external command, operable program or batch file. it seems that you don't have local phpunit installed..

Are you running composer install --no-dev?
Also please paste in your composer.json

from laravel5-angular-material-starter.

masterpowers avatar masterpowers commented on May 13, 2024

this is my composer.json file

{
    "name": "jadjoubran/laravel5-angular-material-starter",
    "description": "Laravel 5 angular material starter project with elixir setup",
    "keywords": ["laravel", "angular", "material", "starter", "ui-router", "api"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
        "barryvdh/laravel-debugbar": "~2.0",
        "tymon/jwt-auth": "0.5.*",
        "dingo/api": "1.0.x@dev"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php -r \"copy('.env.example', '.env');\"",
            "php -r \"unlink('code_of_conduct.md');\"",
            "php -r \"unlink('CHANGELOG.md');\"",
            "php -r \"unlink('.codeclimate.yml');\"",
            "php -r \"unlink('.travis.yml');\"",
            "php artisan key:generate",
            "php artisan jwt:generate"
        ]
    }
}

from laravel5-angular-material-starter.

masterpowers avatar masterpowers commented on May 13, 2024

im not running composer install --no dev
im just using the normal composer install

from laravel5-angular-material-starter.

masterpowers avatar masterpowers commented on May 13, 2024

i try to run php unit and got this Ok , but for Gulp still failing

C:\Users\Andrew Galang\Code\rfnbeta>phpunit
PHPUnit 4.8.10 by Sebastian Bergmann and contributors.

......

Time: 5.63 seconds, Memory: 15.75Mb

OK (6 tests, 17 assertions)

from laravel5-angular-material-starter.

jadjoubran avatar jadjoubran commented on May 13, 2024

Maybe you can the fix described here

If it doesn't work, try installing php unit globally:
composer global require "phpunit/phpunit=4.0.*"

from laravel5-angular-material-starter.

jadjoubran avatar jadjoubran commented on May 13, 2024

I just saw your comment.
So it means the first suggestion should fix it - npm cache clear and then npm install

from laravel5-angular-material-starter.

masterpowers avatar masterpowers commented on May 13, 2024

still got the same results it failed

from laravel5-angular-material-starter.

masterpowers avatar masterpowers commented on May 13, 2024

this is what is inside gulpfile.js

elixir(function(mix){
    mix
        .bower()
        .angular('./angular/')
        .less('./angular/**/*.less', 'public/css')
        .copy('./angular/app/**/*.html', 'public/views/app/')
        .copy('./angular/directives/**/*.html', 'public/views/directives/')
        .copy('./angular/dialogs/**/*.html', 'public/views/dialogs/')
        .livereload([
            'public/js/vendor.js',
            'public/js/app.js',
            'public/css/vendor.css',
            'public/css/app.css',
            'public/views/**/*.html'
        ], {liveCSS: true})
        .phpUnit();
});

if i remove phpUnit(); is doesnt throw error, but with it when u test it failed
dont know why

from laravel5-angular-material-starter.

jadjoubran avatar jadjoubran commented on May 13, 2024

Please check if this stackoverflow fixes it.

This is not a problem with this package. If you run a few installation for Laravel and add .phpUnit() to your gulpfile you're going to see the same error.

Please update this thread if you were able to solve it
Thanks!

from laravel5-angular-material-starter.

mzvast avatar mzvast commented on May 13, 2024

what's the solution?I same issue.

from laravel5-angular-material-starter.

jadjoubran avatar jadjoubran commented on May 13, 2024

@mzvast make sure you did the following:

  • fix your database credentials in your .env file (also make sure you have a test database)
  • run the migration php artisan migrate

then if you run the tests it should work

from laravel5-angular-material-starter.

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.