hoaproject / Console

The Hoa\Console library.
https://hoa-project.net/
366 stars 32 forks source link

Write tests #58

Closed Hywan closed 9 years ago

Hywan commented 9 years ago

Now we have an Output interface, this is much easier to test the Hoa\Console library. So here we go. I am writing tests :-].

Steps

Hywan commented 9 years ago
Success (6 tests, 177/177 methods, 0 void method, 0 skipped method, 325 assertions)!

\o/

Hywan commented 9 years ago
Success (7 tests, 199/199 methods, 0 void method, 0 skipped method, 356 assertions)!

\o/

Hywan commented 9 years ago
Success (8 tests, 207/207 methods, 0 void method, 0 skipped method, 378 assertions)!

\o/

Hywan commented 9 years ago

I don't know how to test Hoa\Console\Processus from a unit point of view. Functional testing would be fine but unit testing… hardcore. Any idea? /cc @jubianchi

jubianchi commented 9 years ago

@Hywan I'll try to have a look at Processus and see if I can suggest something

Hywan commented 9 years ago

Need to mock constant before completing this PR. See https://github.com/atoum/atoum/issues/511. I will try a first implementation in Hoa\Test. Then, if not bad, I will port it to atoum.

Hywan commented 9 years ago
Success (13 tests, 254/254 methods, 0 void method, 0 skipped method, 540 assertions)!

\o/