Comments (5)
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.
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.
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.
@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.
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)
- Remove manually maintained TOC on top of articles? HOT 2
- [SUGGESTION] Document CRUD HOT 2
- Wrong relation for workflowStep in documentation HOT 2
- Workflows documentation misses transitions definitions HOT 2
- Install Documentation Inconsistencies HOT 5
- How to Create a Basic Datagrid Errors HOT 4
- Italian translation of documentation HOT 4
- Propose to add (or at least to mention) the «--timeout» key in the «5b. Using the Installation Command», because the default timeout of 300 seconds is often too small and could break the installation HOT 2
- The Nginx configuration, which is recommended by the documentation, allows public access to the hidden server files (e.g., «.htaccess») inside the «web» folder HOT 1
- [DOC][CRM REPORT] HOT 2
- Web API: config HOT 1
- Adding Computed fields to API
- Create Payment Method Integrations : Wrong example of factory in code sample
- Readme of ChartBundle points to wrong page in documentation
- the requested url /crm-application/web/installer was not found HOT 1
- Documentation standards
- Entity override/extend HOT 3
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 documentation.