Giter Site home page Giter Site logo

PHP7 (and HHVM??) In travis about paraunit HOT 7 CLOSED

fntlnz avatar fntlnz commented on May 30, 2024
PHP7 (and HHVM??) In travis

from paraunit.

Comments (7)

peelandsee avatar peelandsee commented on May 30, 2024

+1 for this feature

from paraunit.

ranpafin avatar ranpafin commented on May 30, 2024

We would gladly accept a pull request for this feature.

from paraunit.

taueres avatar taueres commented on May 30, 2024

Porting to Hacklang would be awesome!

from paraunit.

fntlnz avatar fntlnz commented on May 30, 2024

For this purpose I ran some commands against PHP 7.0.0beta1.

I used a docker image of mine fntlnz/php-fpm:7.0.0beta1

paraunit cli

COMMAND

docker run -it -v $PWD:/paraunit -w /paraunit --entrypoint=php fntlnz/php-fpm:7.0.0beta1 /paraunit/src/Paraunit/Bin/paraunit run

OUTPUT

                                                   B>                           
                                                   B "Bp                        
.pp..                                              B    9p                      
 "9BBBBBBpp.                                       B      9p                    
    " ""9BBBBBBpp                          .<eeP"B B      .B b                  
           "SANDROBpp              .     B B     B B      )B B                  
              "BFRABBBB>  .<pe6P\B B     B B     B B      $  B     .e           
                 5NICOBBB B     ·B B     B B     B Bqp.  :B  B     $ 4BBpp      
                   BMIKIB B        B     B B     B B   "^Bp  B    ) |BBB"\BBpp. 
                 .BALEBBB """9q.   B"""""B B"""""B B      1p B""""9p BBBBbBBBBBBB
               <BLUCABBBB B    "B  B     B B     B B       B B     9 9BBB< ^P"  
            .6BSERGIOBBBB B666666B B     B B     B B       9 P      7 9BBBBP    

PARAUNIT TEST 0.4 -- by Shark Dev Team @ Facile.it
.................S

Execution time -- 00:00:00 

Executed: 5 tests

1 files with SKIPPED:
 RunnerTest.php

paraunit testsuite

docker run -it -v $PWD:/paraunit -w /paraunit --entrypoint=php fntlnz/php-fpm:7.0.0alpha2 ./bin/phpunit
PHPUnit 4.8-dev by Sebastian Bergmann and contributors.

..............................S

Time: 374 ms, Memory: 6.00Mb

OK, but incomplete, skipped, or risky tests!
Tests: 31, Assertions: 58, Skipped: 1.

zendframework/zend-diactoros testsuite

This command can run any zf component, just replace zend-diactoros with zend-anythingyouwant

COMMAND

docker run -it --entrypoint=bash fntlnz/php-fpm:7.0.0beta1 -c "mkdir -p ~/.ssh; echo -e 'Host github.com\n\tStrictHostKeyChecking no\n' >> ~/.ssh/config; yum install git -y; git clone https://github.com/zendframework/zend-diactoros.git repository; cd repository; wget -O composer.phar https://getcomposer.org/composer.phar; chmod +x composer.phar; ./composer.phar require facile-it/paraunit:dev-master; ./composer.phar install; ./vendor/bin/paraunit run"

PARAUNIT OUTPUT

                                                   B>                           
                                                   B "Bp                        
.pp..                                              B    9p                      
 "9BBBBBBpp.                                       B      9p                    
    " ""9BBBBBBpp                          .<eeP"B B      .B b                  
           "SANDROBpp              .     B B     B B      )B B                  
              "BFRABBBB>  .<pe6P\B B     B B     B B      $  B     .e           
                 5NICOBBB B     ·B B     B B     B Bqp.  :B  B     $ 4BBpp      
                   BMIKIB B        B     B B     B B   "^Bp  B    ) |BBB"\BBpp. 
                 .BALEBBB """9q.   B"""""B B"""""B B      1p B""""9p BBBBbBBBBBBB
               <BLUCABBBB B    "B  B     B B     B B       B B     9 9BBB< ^P"  
            .6BSERGIOBBBB B666666B B     B B     B B       9 P      7 9BBBBP    

PARAUNIT TEST 0.4 -- by Shark Dev Team @ Facile.it
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
............

Execution time -- 00:00:01 

Executed: 14 tests

PHPUNIT OUTPUT

PHPUnit 4.7.7 by Sebastian Bergmann and contributors.

...............................................................  63 / 623 ( 10%)
............................................................... 126 / 623 ( 20%)
............................................................... 189 / 623 ( 30%)
............................................................... 252 / 623 ( 40%)
............................................................... 315 / 623 ( 50%)
............................................................... 378 / 623 ( 60%)
............................................................... 441 / 623 ( 70%)
............................................................... 504 / 623 ( 80%)
............................................................... 567 / 623 ( 91%)
........................................................

Time: 141 ms, Memory: 8.00Mb

OK (623 tests, 1082 assertions)

from paraunit.

Jean85 avatar Jean85 commented on May 30, 2024

Thanks for the Docker one-line command! Very useful!
As you can see, it runs on PHP7 and Hacklang, but it doesn't run all the tests that PHPUnit runs normally. That's the major issue we're dealing with right now.

BTW, the Executed: 14 tests means 14 CLASSES, we will add a test function count (like PHPUnit) ASAP for fast comparison.

from paraunit.

Jean85 avatar Jean85 commented on May 30, 2024

This seems to be fixed with the latest commit (75cfc1f):

                                                   B>                           
                                                   B "Bp                        
.pp..                                              B    9p                      
 "9BBBBBBpp.                                       B      9p                    
    " ""9BBBBBBpp                          .<eeP"B B      .B b                  
           "SANDROBpp              .     B B     B B      )B B                  
              "BFRABBBB>  .<pe6P\B B     B B     B B      $  B     .e           
                 5NICOBBB B     ·B B     B B     B Bqp.  :B  B     $ 4BBpp      
                   BMIKIB B        B     B B     B B   "^Bp  B    ) |BBB"\BBpp. 
                 .BALEBBB """9q.   B"""""B B"""""B B      1p B""""9p BBBBbBBBBBBB
               <BLUCABBBB B    "B  B     B B     B B       B B     9 9BBB< ^P"  
            .6BSERGIOBBBB B666666B B     B B     B B       9 P      7 9BBBBP    

PARAUNIT TEST 0.4 -- by Shark Dev Team @ Facile.it
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
...............................................................

Execution time -- 00:00:01 

Executed: 19 tests

If you count the dots, they are 623, and it's correct. The tests counted on the bottom are still classes, I will address this ASAP, as I said before.

from paraunit.

Jean85 avatar Jean85 commented on May 30, 2024
Generating autoload files
                                                   B>                           
                                                   B "Bp                        
.pp..                                              B    9p                      
 "9BBBBBBpp.                                       B      9p                    
    " ""9BBBBBBpp                          .<eeP"B B      .B b                  
           "SANDROBpp              .     B B     B B      )B B                  
              "BFRABBBB>  .<pe6P\B B     B B     B B      $  B     .e           
                 5NICOBBB B     ·B B     B B     B Bqp.  :B  B     $ 4BBpp      
                   BMIKIB B        B     B B     B B   "^Bp  B    ) |BBB"\BBpp. 
                 .BALEBBB """9q.   B"""""B B"""""B B      1p B""""9p BBBBbBBBBBBB
               <BLUCABBBB B    "B  B     B B     B B       B B     9 9BBB< ^P"  
            .6BSERGIOBBBB B666666B B     B B     B B       9 P      7 9BBBBP    

PARAUNIT TEST 0.4 -- by Shark Dev Team @ Facile.it
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
...............................................................

Execution time -- 00:00:01 

Executed: 19 test classes, 623 tests

Added executed tests count. Yay!

from paraunit.

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.