Giter VIP home page Giter VIP logo

docker-phpqa's Issues

Create preset for bug tests

phpqa generate /path/to/phpt/dir -f %function_name% -bug %#bug_number%

--TEST--
%#bug_number% 
--CREDITS--
--FILE--
<?php
# body
?>
--XFAIL--
# the reason
--EXPECT--

Make it suitable for contribute to https://github.com/php/php-src sending pull requests to there

In the way it is, we need to put new tests in the folder phpt of this repository.

I think it could be good if we had some explanation of how to use this project to facilitate the flow that a contributor need to follow in order to send pull requests to https://github.com/php/php-src:

@brunoric how do you suggest us to put everything together?

Best!

Compiling in gcov

I'd like to request that gcov be compiled to each of the versions in the docker container , so that users can validate their tests are providing coverage for the lines they're trying to cover before submitting a pull request

Shrink images

Put some effort to shrink the images, either using the Alpine version of them or any other strategy.

Integrate with CircleCI

Integrate this repository with CircleCi in order to have the docker images builds tested.

Output of test debug info should be per version to prevent override of files

When running the suite if the test fails some debug files are created to help to understand what went wrong.

If we run multiple versions the latest is the only one that is saved. This is not optimal.

The ideal should be to generate folders or prefixes for the version that is running. Something like:
phpt/56/
phpt/71/
or
phpt/56_
phpt/71_

Improve output of phpqa [help]

We should review how we display the help message. It does not contain all possible options (for example it is missing help) and it is also too long. Maybe creating the option phpqa help to output the possible commands and also making possible something like phpqa help run to output the help for the command run.

This api needs to be evaluated and discussed.

Different results with make and phpqa

I cloned the phptestfest-php-src and executed some tests with the phpqa tool.
When I execute the test from the security folder almost all tests are fail.

Here is the log from my console.
I am not sure why this happens, but it only occurs within the docker env. If I execute the test on a Host machine with make there is only one failure.

Create a version command

Since we are releasing frequently we need to implement a version command to easily inform to the user the version that it has installed. This will help when users are submitting issues.

Problem when I try to install docker-phpqa on Windows

When I try to install docker-phpqa on windows the following error occurs:

$ curl -s https://raw.githubusercontent.com/herdphp/docker-phpqa/master/bin/ins
taller.sh | bash
PHPQA installer started ...
Step 1: clonning the repository to /c/Users/LuizFelipe/.phpqa/bin/phpqa.sh
Cloning into 'C:/Users/LuizFelipe/.phpqa'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Step 2: linking phpqa.sh to /usr/local/bin/phpqa ...
ln: failed to create symbolic link ‘/usr/local/bin/phpqa’: No such file or directory
Step 3: applying exec permissions ...
chmod: cannot access ‘/usr/local/bin/phpqa’: No such file or directory
Success! The phpqa command was added to your /usr/local/bin folder and can be used globally.

Note: I already have Docker installed.

phpqa run suite not working

phpqa run suite
Error: You need to provide a phpt or a directory with phpt files to be tested or pass suite as first parameter to run the full test suite.

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.