Closed Grummfy closed 5 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.
AbstractTestFrameworkAdapter
(you will create src/TestFramework/Atoum/Adapter/AtoumAdapter.php
)CommandLineArgumentsAndOptionsBuilder
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.
thanks. I miss the codeception integration, so I will check it too. I will try to implements something ;)
I list here the points
So for me it seems OK
I will try something then ;)
playing a particular test (in a file, in a method, whatever)
is it through the config file?
I will try something then ;)
👍
particular test => file or cli args http://docs.atoum.org/en/latest/option_cli.html#filtering
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.
did you have any success with this integration @Grummfy?
ping @Grummfy
Closing due to no activity and no demand from other users. Feel free to reopen
I'm also interested to use infection with atoum. How can I help ?
@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
ok thank you. I will look at @Grummfy work and try to resolve this issue.
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