Code Monkey home page Code Monkey logo

Comments (3)

Synida avatar Synida commented on August 28, 2024

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.

Synida avatar Synida commented on August 28, 2024

win10 local with xdebug;
changing remote: true to remote: false solves the issue, investigating the ci environment.

from c3.

Synida avatar Synida commented on August 28, 2024

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)

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.