-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add infection task #1013
Comments
I was trying this, but stranded :-(
see my conversation here: |
@marcelloh some suggestons:
Can you post the actual |
my output:
|
When the command
succeedes without phing than I guess there might be a folder permissions problem on windows. I will try to reproduce this behavior. In the meantime you can try using the |
@marcelloh I added build.xml <?xml version="1.0"?>
<project name="Phing Build Tests" default="infection" basedir=".">
<target name="infection">
<exec executable="vendor/bin/infection" passthru="true">
<arg value="-j5"/>
<arg value="--ansi"/>
</exec>
</target>
</project> Output: C:\Users\xxx\AppData\Roaming\Composer\vendor\bin\phing.bat -f C:/Users/xxx/GITRepos/Assumptions/build.xml infection
Buildfile: C:\Users\xxx\GITRepos\Assumptions\build.xml
Phing Build Tests > infection:
You are running Infection with xdebug enabled.
____ ____ __ _
/ _/___ / __/__ _____/ /_(_)___ ____
/ // __ \/ /_/ _ \/ ___/ __/ / __ \/ __ \
_/ // / / / __/ __/ /__/ /_/ / /_/ / / / /
/___/_/ /_/_/ \___/\___/\__/_/\____/_/ /_/
0 [>---------------------------] < 1 secRunning initial test suite...
PHPUnit version: 7.5.1
4 [============================] 3 secsProcessing source code files: 0/8
Generate mutants...
Processing source code files: 8/8
Creating mutated files and processes: 50/50
.: killed, M: escaped, S: uncovered, E: fatal error, T: timed out
.....M.....MM.MMMMMMM..MM.MMM..M..MM......M...M... (50 / 50)
50 mutations were generated:
30 mutants were killed
0 mutants were not covered by tests
20 covered mutants were not detected
0 errors were encountered
0 time outs were encountered
Metrics:
Mutation Score Indicator (MSI): 60%
Mutation Code Coverage: 100%
Covered Code MSI: 60%
Please note that some mutants will inevitably be harmless (i.e. false positives).
Time: 39s. Memory: 12.00MB
BUILD FINISHED
Total time: 42.5029 seconds
Build finished at 02.01.2019 20:28 with exit code 0.
|
You could try additional verbosity: <exec executable="vendor/bin/infection" passthru="true">
<arg value="-j5"/>
<arg value="--ansi"/>
<arg value="-vvv"/>
</exec> |
done the -vvv
The attrrib task is vague, because:
makes all ".xml" files below ${meta.inf} readable ??? |
btw: I noticed you do:
but when I do that, I'll get:
This is because I don't have php in my path (want to switch versions during development easily) |
I also tried (a slightly modified version),
which still gives me:
|
I also tried to debug infection, but somehow it ens at the passthru command, when the debug session it not passed on to.
My command would be:
So I changed the passthry command to be a working one, to be able to debug more. |
@marcelloh this file is generated by infection and the infection command generation and execution is done by phing. |
obviously, this file is not generated by infection, because it is complaining about it. |
It is generated by the test framework you use inside infection. As you can see on my example it is working just fine with phing. Maybe you should use phing as a command or as a composer dependency instead of |
But without a reproducable example, I am not able to give you more info. |
when I do it via a separate batch file (start_phing) which has the following command:
And it still gives me that infection can't find : when I do the same without phin, but call infection via a batch file:
it works (I think because it gets all the debugging extra's with it.) |
|
Both versions (with and without php as a executable) works for me. |
php 7.2.12? (I really don't get this), which is an unfortanatelty event, and I really appreiciate your time.. grrr. |
As a last try: could you try phing dev-master instead of 3.0.0-alpha? Maybe an issue which was solved already? |
You do not need to close as I am working on a single task for infection. |
Ok, fine to hear that and, if you need a tester :-) .... |
@marcelloh would you mind update your phing to the new alpha release - i discovered a bugfix, which fixed an issue of argument escaping under windows. See #735 |
I had a long weekend so sorry for the delay. I have the alpha 2 now, but with the same result:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@siad007 Are you still working on this? |
@mimmi20 i had a lot of work here but was stopped by could not catch a status from the infection command as far as i remember. if you are interested in taking over i will commit my changes. |
Related to #654 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@mimmi20 are you still interested in picking this up? |
Sorry, no |
Okay, thanks! In that case we'll close this issue for now. If/when someone has time to contribute a task, we can re-open. |
It would be awesome to support the mutation test framework
infection
with an own task.Related to infection/infection#592
The text was updated successfully, but these errors were encountered: