Comments (3)
win10 env with xdebug update:
found 2 issues that I fixed.
First one was that if in codeception.yml config file in the include section includes are declared like this:
- backend/*
- common/*
- console/*
Then every single file type is on the while list, so even docx, rtf, txt, ect will be passed to the coverage, which then will show up in the c3tmp/codecoverage.serialized file, although the driver can't process it and will throw errors. Fixed it with better filtering:
- backend/*.php
- common/*.php
- console/*.php
Second issue I found was Yii2 related to global constants.
YII_APP_BASE_PATH was used in the config file that was used for testing. For regular, sharder, anything but coverage test execution the constant returned with the git project root folder, which is one level above the yii path folder. For coverage tests execution this contained the yii installation path. Solved with replacing it with relative path: dirname(DIR)
After these fixes the tests are passing for local win10 with xdebug the tests were passing even with coverage option, but then I got different type of error:
[UnexpectedValueException]
internal corruption of phar "C:\Users\Synida\AppData\Local\Temp\C31EF7.tmp.tar" (__HALT_COMPILER(); not found)
from c3.
win10 local with xdebug;
changing remote: true to remote: false solves the issue, investigating the ci environment.
from c3.
it was access permission issue on the output folder, which had 755, but c3 requires 777. Even tho the user has the permission to change the folder and file permission for these files, it just crashed - got no error message on the server and no response was available during testing. This was the linux environment.
from c3.
Related Issues (20)
- Constant C3_CODECOVERAGE_MEDIATE_STORAGE can be used before it's defined HOT 2
- Composer update still fatal errors. HOT 3
- Minimal dependences HOT 2
- Why does the installer copy c3.php into the project root? HOT 5
- Could not write error to log file
- Class 'PHP_CodeCoverage' not found in c3.php on line 232 HOT 1
- codeception/codeception/autoload.php not included HOT 3
- Don't work with suite configuration HOT 6
- Composer Plugin API is deprecated HOT 3
- Minor improvements to pass psecio-parse's scan
- Probleme with pcov HOT 2
- C3 v2.6.0 Generates Error HOT 3
- Fatal error from c3.php file HOT 15
- Remove obsolete branches HOT 1
- remote coverage result all 0 HOT 1
- update readme link
- Uncaught Error: Undefined constant C3_CODECOVERAGE_MEDIATE_STORAGE HOT 1
- Anomaly crash throws 500 error code for request at different placesin the code, no error message
- Read/Write collision when requesting a report
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 c3.