Giter VIP home page Giter VIP logo

Comments (6)

julianseeger avatar julianseeger commented on June 19, 2024

I think "--functional" is what you expect for (2).
It will "Run methods instead of suites in separate processes." so it's probably like process-isolation except for dataproviders.

from paratest.

JoelMarcey avatar JoelMarcey commented on June 19, 2024

@julianseeger Thanks for the reply. I thought about that and tried. But with and without -f, I get the following for a framework like assetic. Basically I crash at the 244th test or so.


hhvm ../../vendor/bin/paratest --functional

Running phpunit in 5 processes with /data/users/joelm/fbcode/hphp/test/frameworks/vendor/bin/phpunit. Functional mode is on

Configuration read from /data/users/joelm/fbcode/hphp/test/frameworks/frameworks/assetic/phpunit.xml.dist

...............................................................  63 / 269 ( 23%)
...............................F.......................E....... 126 / 269 ( 46%)
.............................................................EE 189 / 269 ( 70%)
E.EEEEEEEEEEEEEEEEEEEEEEEE.EEE.......


  [InvalidArgumentException]
  Log file /tmp/PT_Xii2HZ is empty. This means a PHPUnit process has crashed.



paratest [-p|--processes="..."] [-f|--functional] [--no-test-tokens] [-h|--help] [--phpunit="..."] [--runner="..."] [--bootstrap="..."] [-c|--configuration="..."] [-g|--group="..."] [--log-junit="..."] [--colors] [--path="..."] [path]

from paratest.

brianium avatar brianium commented on June 19, 2024

Hey guys. My time to support paratest has definitely been limited, so I apologize for explanation rather than solution at the moment.

Just to clarify on some of the phpunit configurations, paratest is pretty limited in what it can support at the moment. Some things just don't delegate to PHPUnit as nicely as we might hope.

The functional switch [-f|--functional] switch works best for methods that have no external dependencies; it was originally designed to speed up selenium tests.

from paratest.

uzbxodgiev avatar uzbxodgiev commented on June 19, 2024

Hi guys in Laravel 5.4 I installed paratest with composer but it crashes when I run my tests. Crash Log below

Log file C:\Users\SomUserName\AppData\Local\Temp\PT_9E76.tmp is empty. This means a PHPUnit process has crashed.
The process: C:\xampp\htdocs\project\project_project\some_project\vendor\bin\phpunit.bat --configuration C:\xampp\htdocs\project\project_project\some_project\phpunit.xml --log-junit C:\Users
SomUserName\AppData\Local\Temp\PT_9E76.tmp Tests\Feature\ExampleTest C:\xampp\htdocs\project\project_project\some_project\tests\Feature\ExampleTest.php
This means a PHPUnit process was unable to run "C:\xampp\htdocs\project\project_project\some_project\tests\Feature\ExampleTest.php"

from paratest.

paslandau avatar paslandau commented on June 19, 2024

@JoelMarcey

For

*** 1. Is there a way to run phpunit in --debug mode with paratest, so that I can see the name of each individual test running as paratest is executing? I tried:

I added a --verbose=1 option in #361 that will now output the underyling phpunit command.

from paratest.

github-actions avatar github-actions commented on June 19, 2024

This issue has gone two months without activity. In another two weeks, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Backlog or In Progress, I will leave it alone ... forever!

from paratest.

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.