mfncooper / mockery

Simplifying the use of mocks with Node.js
Other
1.1k stars 60 forks source link

Updated tests to use vows and istanbul #23

Closed davglass closed 9 years ago

davglass commented 9 years ago

I'm starting to work on this module and bring it back up to date. I have refactored all the tests to use vows and istanbul. The current tests didn't even work locally for me.

Current coverage as of this PR:

-----------------|-----------|-----------|-----------|-----------|
File             |   % Stmts |% Branches |   % Funcs |   % Lines |
-----------------|-----------|-----------|-----------|-----------|
   mockery/      |     96.43 |     91.07 |     95.83 |     96.43 |
      mockery.js |     96.43 |     91.07 |     95.83 |     96.43 |
-----------------|-----------|-----------|-----------|-----------|
All files        |     96.43 |     91.07 |     95.83 |     96.43 |
-----------------|-----------|-----------|-----------|-----------|

I didn't touch mockery.js yet as I needed to move the tests over to a system that works and produces good code coverage reports.

Once this get's merged in, I can start accepting Pull Requests again since we will have valid tests.

davglass commented 9 years ago

Latest push:

-----------------|-----------|-----------|-----------|-----------|
File             |   % Stmts |% Branches |   % Funcs |   % Lines |
-----------------|-----------|-----------|-----------|-----------|
   mockery/      |       100 |     98.21 |       100 |       100 |
      mockery.js |       100 |     98.21 |       100 |       100 |
-----------------|-----------|-----------|-----------|-----------|
All files        |       100 |     98.21 |       100 |       100 |
-----------------|-----------|-----------|-----------|-----------|