icyapril / whatschanged Goto Github PK
View Code? Open in Web Editor NEWRun PHPUnit tests on only classes and tests which have changed
Run PHPUnit tests on only classes and tests which have changed
Hello,
I'm trying to use whatschanged, that i think is a very nice solution! But i have some issues, for example: i have git installed but it says i haven't.
However, after some debugging i found the follow line: /usr/bin/git &> /dev/null; echo $?
, so when i run this line by bash returns 1, but by whatschanged returns 0.
Follows my bash log:
`$ ./vendor/bin/whatschanged
Fatal error: Uncaught IcyApril\WhatsChanged\GitException: Git doesn't appear to exist in: /usr/bin/git in /var/www/html/webgarage/vendor/icyapril/whats-changed/src/Git.php on line 27
IcyApril\WhatsChanged\GitException: Git doesn't appear to exist in: /usr/bin/git in /var/www/html/../vendor/icyapril/whats-changed/src/Git.php on line 27
Call Stack:
0.0002 357592 1. {main}() /var/www/html/../vendor/icyapril/whats-changed/whatschanged:0
0.0214 2332224 2. IcyApril\WhatsChanged\Git->__construct() /var/www/html/../vendor/icyapril/whats-changed/whatschanged:59
$ /usr/bin/git &> /dev/null; echo $?
1
$ type git
git is hashed (/usr/bin/git)
$ php -v
PHP 7.1.9 (cli) (built: Sep 15 2017 00:15:33) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans`
Can someone helps me?
Thanks for this!
I'm using this package on a project with a PHPUnit dependency of ^7.0
, and composer require fails because this package's PHPUnit dependency is marked as ^6.0
.
I have verified that using ^7.0
works in this fork, and it would be helpful to change the version referenced in this project to ^7.0
or >=6.0
.
Hi @IcyApril,
I just came across your post https://icyapril.com/php/programming/2017/05/14/whats-changed-only-running-phpunit-tests-for-changed-classes.html
It's amazing, I love the constraints! My test-suite runs 35 seconds, but it's frustrating to wait for such a long time for only 15 lines of changed code.
I'd love to take over this project and maintain it/develop it under @migrify - set of packages designed for huge code migrations with confidence.
Not sure if you're still around, based on 3 years since last commit ๐ , but if you hear me, I'd love to take over this code base.
If you can't reply for whatever reason, I'll copy the code while remain copyright to your post and this repository of course. I think this is super cool project and it should live and prosper ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.