Giter VIP home page Giter VIP logo

Comments (19)

DavertMik avatar DavertMik commented on May 20, 2024

By default, html reports are written to tests/_data/result.html
Check this file can be written.

from codeception.

essacht avatar essacht commented on May 20, 2024

done, sudo, chmod 777 .... nothing.
result still empty and the same error message. any further suggestions?
we tried on three more or less different systems ..

from codeception.

DavertMik avatar DavertMik commented on May 20, 2024

Ok, thanks, I will look at it today

from codeception.

arthos avatar arthos commented on May 20, 2024

aah, yes - same message for me here
Ubuntu 12.04

from codeception.

DavertMik avatar DavertMik commented on May 20, 2024

Ok, ok. This really should be checked and done.
I'm going to grab some beer and fix that bug finally )

from codeception.

arthos avatar arthos commented on May 20, 2024

you must be really drunk now :P

from codeception.

DavertMik avatar DavertMik commented on May 20, 2024

Well, I fixed it.
But I need to close other issues and make a release.
I plan to make a release today.

from codeception.

arthos avatar arthos commented on May 20, 2024

yeeehah! ... cant wait :D

from codeception.

qustavo avatar qustavo commented on May 20, 2024

happen the same here:

[ErrorException]                               
  fwrite(): 1805 is not a valid stream resource  

Exception trace:
 () at /home/gchain/dev/typeform/typeform/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:73
 Codeception\Subscriber\ErrorHandler->errorHandler() at n/a:n/a
 fwrite() at /home/gchain/dev/typeform/typeform/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:73
 Monolog\Handler\StreamHandler->write() at /home/gchain/dev/typeform/typeform/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:84
 Monolog\Handler\RotatingFileHandler->write() at /home/gchain/dev/typeform/typeform/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:37
 Monolog\Handler\AbstractProcessingHandler->handle() at /home/gchain/dev/typeform/typeform/vendor/monolog/monolog/src/Monolog/Logger.php:244
 Monolog\Logger->addRecord() at /home/gchain/dev/typeform/typeform/vendor/monolog/monolog/src/Monolog/Logger.php:437
 Monolog\Logger->info() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/Subscriber/Logger.php:44
 Codeception\Subscriber\Logger->endTest() at n/a:n/a
 call_user_func() at /home/gchain/dev/typeform/typeform/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:164
 Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /home/gchain/dev/typeform/typeform/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:53
 Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/PHPUnit/Listener.php:62
 Codeception\PHPUnit\Listener->endTest() at /home/gchain/dev/typeform/typeform/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:378
 PHPUnit_Framework_TestResult->endTest() at /home/gchain/dev/typeform/typeform/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:724
 PHPUnit_Framework_TestResult->run() at /home/gchain/dev/typeform/typeform/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
 PHPUnit_Framework_TestCase->run() at /home/gchain/dev/typeform/typeform/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
 PHPUnit_Framework_TestSuite->runTest() at /home/gchain/dev/typeform/typeform/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
 PHPUnit_Framework_TestSuite->run() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/PHPUnit/Runner.php:65
 Codeception\PHPUnit\Runner->doEnhancedRun() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/SuiteManager.php:155
 Codeception\SuiteManager->run() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/Codecept.php:151
 Codeception\Codecept->runSuite() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/Codecept.php:131
 Codeception\Codecept->run() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/Command/Run.php:125
 Codeception\Command\Run->runSuites() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/src/Codeception/Command/Run.php:93
 Codeception\Command\Run->execute() at /home/gchain/dev/typeform/typeform/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:241
 Symfony\Component\Console\Command\Command->run() at /home/gchain/dev/typeform/typeform/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:892
 Symfony\Component\Console\Application->doRunCommand() at /home/gchain/dev/typeform/typeform/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191
 Symfony\Component\Console\Application->doRun() at /home/gchain/dev/typeform/typeform/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121
 Symfony\Component\Console\Application->run() at /home/gchain/dev/typeform/typeform/vendor/codeception/codeception/codecept:2

from codeception.

raoul2000 avatar raoul2000 commented on May 20, 2024

same here whe I run : codecept.bat run unit

 [yii\base\ErrorException]
  fwrite(): 273 is not a valid stream resource

Codeception 1.8.1 on Windows 7 with PHP 5.4.12 with Yii2 Module for the Yii framework

Note that when I run each single unit test one after the other everything is fine.

from codeception.

samdark avatar samdark commented on May 20, 2024

We're observing it during travis runs as well.

from codeception.

Ragazzo avatar Ragazzo commented on May 20, 2024

@raoul2000 @samdark is it application template or what ?

from codeception.

samdark avatar samdark commented on May 20, 2024

Yii itself has it for app templates, @raoul2000 seems to be experiencing it for his own tests: http://www.yiiframework.com/forum/index.php/topic/53290-codeception-not-a-valid-stream-resource/

from codeception.

Ragazzo avatar Ragazzo commented on May 20, 2024

i checked with yii2-basic on W7 ,php 5. 4 .20 everything is ok , however yeah this exception occures from time to time in travis .

from codeception.

raoul2000 avatar raoul2000 commented on May 20, 2024

yes I confirm : I'm running unit tests (codecept.bat run unit) and get this error.

from codeception.

DavertMik avatar DavertMik commented on May 20, 2024

I'm not sure what actually causes this. According to stacktrace this might be related to Monolog. I think you can try to turn it off. Btw, logging with Monolog is disabled by default in 2.0.

So you should try to set this in codeception.yml

settings:
  log: false

from codeception.

samdark avatar samdark commented on May 20, 2024

It won't turn off output? Correct?

from codeception.

Ragazzo avatar Ragazzo commented on May 20, 2024

yes , just logging .

from codeception.

raoul2000 avatar raoul2000 commented on May 20, 2024

disabling log does solve the problem. Thanks for your help

from codeception.

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.