Comments (11)
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.
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.
im not running composer install --no dev
im just using the normal composer install
from laravel5-angular-material-starter.
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.
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.
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.
still got the same results it failed
from laravel5-angular-material-starter.
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.
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.
what's the solution?I same issue.
from laravel5-angular-material-starter.
@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)
- Deploying project from Windows Local environment to ubuntu 16.04 production environment on AWS HOT 8
- Laravel-Angular-Material-Doc-Chinese HOT 2
- How to use prerender service HOT 3
- Error deploying to Heroku
- CSS isolation for every component HOT 1
- integration of a new angular template HOT 3
- error on running php artisan migrate HOT 1
- How to setting this project to passive event? HOT 1
- Uncaught ReferenceError: module is not defined while trying to import laravel-echo HOT 1
- use angularjs components HOT 1
- angular module error on fresh project setup HOT 4
- how to implement pagination with restangular? HOT 2
- How i could debug the frontend HOT 6
- Is this project abandoned? HOT 1
- Bug Installation L5AMS version 3.4 HOT 4
- Blank starter HOT 1
- problems with a blank starter after installation! HOT 3
- Installation bug HOT 16
- npm install error HOT 1
- AngularJs and PHP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel5-angular-material-starter.