Code Monkey home page Code Monkey logo

Comments (5)

mkudelya avatar mkudelya commented on June 15, 2024

Hi

We are using PHPUnit for Unit/Functional testing. For example when i have ran phpunit48.phar -c app/ vendor/oro/platform/src/Oro/Bundle/UserBundle/Tests/Unit/Provider i got the following output:

bash-3.2$ phpunit48.phar -c 
app/vendor/oro/platform/src/Oro/Bundle/UserBundle/Tests/Unit/Provider

PHPUnit 4.8.23 by Sebastian Bergmann and contributors.

I.......

Time: 134 ms, Memory: 10.00Mb

OK, but incomplete, skipped, or risky tests!
Tests: 8, Assertions: 18, Incomplete: 1.

Also please read the behat documentation.

Do you have any issues when you run phpunit from console ?

from documentation.

aligentjim avatar aligentjim commented on June 15, 2024

Interesting, so when I use the Phar installed phpunit and run with the -c app/ parameter I have a more successful experience. I think I was being confused by the fact that there are phpunit.xml.dist files in both the root folder of the repo (https://github.com/orocrm/crm-application/blob/master/phpunit.xml.dist) and the app/ folder (https://github.com/orocrm/crm-application/blob/master/app/phpunit.xml.dist). Is there a need for both of these to exist. Removing the "broken" one in the root would simplify things.

from documentation.

mkudelya avatar mkudelya commented on June 15, 2024

Hi @aligentjim

We are using phpunit.xml.dist file in the root folder for vendor testing and /app/phpunit.xml.dist for testing inside the /src folder. Please, modify (add/delete a test suit) phpunit.xml for your goals.
Just for your attention, in 2.* version of orocrm phpunit doesn't produce the Class "JohnKary\PHPUnit\Listener\SpeedTrapListener" does not exist error.

from documentation.

dxops avatar dxops commented on June 15, 2024

@aligentjim please do composer install without --no-dev option and use vendor/bin/phpunit binary. Starting from 1.10 version we provide all tools we use for development and CI in require-dev section https://github.com/orocrm/platform-application/blob/1.10/composer.json#L21-L30

from documentation.

aligentjim avatar aligentjim commented on June 15, 2024

Since raising this ticket, we've upgraded the customer to 2.1 and we've been able to get unit tests up and running without issues there. Since this relates to an older version, there's probably no value in spending more time on it.

from documentation.

Related Issues (18)

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.