Git Product home page Git Product logo

Comments (4)

kenjis avatar kenjis commented on May 24, 2024

If you use monkey patching (default is off), it makes your tests slow.

If you want to make it run faster without changing your app/test code,
there are few things you can do:

  • disable Xdebug
  • use php7

Or you could skip slow tests using @group tag of PHPUnit.

  1. add @group slow to slow tests
  2. add --exclude-group slow option to phpunit

from ci-phpunit-test.

 avatar commented on May 24, 2024

Thanks!
Disabling xdebug did it.

I just logged to vm and:
sudo php5dismod xdebug
sudo service php5-fpm restart

After that same test takes:
Time: 3.12 seconds, Memory: 5.75Mb

Keep up the great work! I'm gonna write some tests next :)

from ci-phpunit-test.

kenjis avatar kenjis commented on May 24, 2024

Thanks!

Two more for your information:

from ci-phpunit-test.

 avatar commented on May 24, 2024

Thanks,
I try to upgrade phpunit next.
Also phpdbg might come handy if I ever get that far with this 5 years old project :)

from ci-phpunit-test.

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.