infection / infection

PHP Mutation Testing library
https://infection.github.io
BSD 3-Clause "New" or "Revised" License
2.06k stars 162 forks source link

Atoum unit testing framework integration #381

Closed Grummfy closed 5 years ago

Grummfy commented 6 years ago

Describe the solution you'd like I would like to have atoum integrated here to use it with my project. So globally what's the requirement for it? Globally having some guideline to integrate another unit test framework could be intresting.

Describe alternatives you've considered

Thanks

maks-rafalko commented 6 years ago

Thanks for opening this proposal.

Probably, https://github.com/infection/infection/pull/143 (Codeception) will give you an idea of how the new Test Framework can be integrated into Infection.

So globally what's the requirement for it? Globally having some guideline to integrate another unit test framework could be intresting.

Please, see this comment that lists the requirements.

Also, you will need to investigate how PHPUnit or PhpSpec are implemented. Basically, we have a set of abstract classes/interfaces that the test framework should implement, e.g.

And of course the new code must be covered by tests (see an example)


I've updated the title of this PR to make it Atoum-related, because each test framework should be discussed/implemented in the separate issues.

Grummfy commented 6 years ago

thanks. I miss the codeception integration, so I will check it too. I will try to implements something ;)

Grummfy commented 6 years ago

I list here the points

So for me it seems OK

I will try something then ;)

maks-rafalko commented 6 years ago

playing a particular test (in a file, in a method, whatever)

is it through the config file?

I will try something then ;)

👍

Grummfy commented 6 years ago

particular test => file or cli args http://docs.atoum.org/en/latest/option_cli.html#filtering

Grummfy commented 6 years ago

So code will be put on https://github.com/Grummfy/infection/tree/feature/atoum-support and because I will make some small refactoring regarding the integration of other framework I will also create a branch https://github.com/Grummfy/infection/tree/refactoring/framework-integration (not pushed yet)

For now I just put some code, nothing run, there is no test yet. The idea was just to see the codeception & existing integration and doing some base code to work with. The real implementation will take place later.

maks-rafalko commented 5 years ago

did you have any success with this integration @Grummfy?

maks-rafalko commented 5 years ago

ping @Grummfy

maks-rafalko commented 5 years ago

Closing due to no activity and no demand from other users. Feel free to reopen

klnjmm commented 4 years ago

I'm also interested to use infection with atoum. How can I help ?

theofidry commented 4 years ago

@klnjmm infection provides a https://github.com/infection/abstract-testframework-adapter package with the base interfaces to implement a test framework adapter (you have phpspec & codeception as an example). The first step would be to implement one and then it's a matter of allowing it within infection/infection

you can also reach us on Slack of by opening an new issue if you need additional guidance or have more questions

klnjmm commented 4 years ago

ok thank you. I will look at @Grummfy work and try to resolve this issue.