stephpy / timeline-bundle

Symfony2 bundle to make timeline
193 stars 57 forks source link

[2.0] Write tests with atoum #66

Closed stephpy closed 10 years ago

Nemesisprime commented 11 years ago

Is there a reason for choosing Atoum over PHPUnit?

shouze commented 11 years ago

@Nemesisprime is there a reason for choosing a good unit test framework instead of a bloated one? :scream_cat:

stephpy commented 11 years ago

That's friday, we can troll :p

http://prezi.com/pr_8ylm4dxxt/atoum/

I work with atoum since ~1 year, and IMO, it's far far far better than phpunit ;)

jeremyFreeAgent commented 11 years ago

Is there a reason for choosing Atoum over PHPUnit?

atoum = :cake: PHPUnit = :poop:

marmotz commented 11 years ago

No, actually, there are many reasons to prefer atoum (not Atoum), a new, simple, modern and intuitive unit test framework to an old, slow and borring PHPUnit.

stephpy commented 11 years ago

@Nemesisprime If you do not test Atoum, use, very quick to learn, and once you use it, you will not be able to be separated ;)

jeremyFreeAgent commented 11 years ago

shouze commented 11 years ago

Keep cool gentlemen

stephpy commented 11 years ago

@shouze i'm cool ....

cool

jubianchi commented 11 years ago

https://twitter.com/jubianchi/status/314672662158921728

Nemesisprime commented 11 years ago

Ha! I've opened Pandora's box here!

mageekguy commented 11 years ago

@Nemesisprime : The best answer? Try atoum and compare it with PHPUnit yourself.

jeremyFreeAgent commented 11 years ago

@Nemesisprime You should give a try, otherwise... no, you have to try.

Miliooo commented 10 years ago

Well I understand that you've chosen the software you liked most, but this makes it very difficult for others who want to add tests. Atoum is a lot less popular then mockery (see packagist) and of course much less popular then phpunit.

I don't like submitting code without tests but learning another new test framework is not really something I fancy. There are so few tests at the moment that maybe you could reconsider... :wink:

stephpy commented 10 years ago

I understand, but atoum is really simple and intuitive there is only one thing to know which is really specific to atoum:

One test class =  One class
Spy\TimelineBundle\Tests\Units\Foo\Class => Spy\TimelineBundle\Foo\Class

Then, mock system of atoum is more powerful than phpunit/mockery and asserters too ... and more intuitive.

I understand than you may not want to learn a new unit test framework, but learning atoum is easy and you surely love it ! :) If this is really a problem for you, i'll write tests for new features.

I don't like to make differents choices than OOP community in general, but atoum > phpunit.

jubianchi commented 10 years ago

you may not want to learn a new unit test framework, but learning atoum is easy and you surely love it !

Our job is to constantly learn and try new thing be it just to see what's happening elsewhere.