Skip to content

[GCI '18] Added Code Coverage to 'cloud-storage' Unit Tests#36

Open
angeryrohan wants to merge 3 commits intoleopardslab:masterfrom
angeryrohan:master
Open

[GCI '18] Added Code Coverage to 'cloud-storage' Unit Tests#36
angeryrohan wants to merge 3 commits intoleopardslab:masterfrom
angeryrohan:master

Conversation

@angeryrohan
Copy link

@angeryrohan angeryrohan commented Nov 26, 2018

Added Code Coverage

  • Used Ava.js & Istanbul, a JavaScript test coverage tool.

  • Imported nyc from Istanbul in particular for coverage purposes

  • Ignored MacOS junk by adding it in .gitignore

code coverage

This is how the coverage test looks like!



Improved Dynamic Command Registering

  • Included const fs = require('fs');

  • Saved base (main) path

  • Searching all folders inside 'cli-commands' to grab all implementations of cmd.js

  • Mapping them using the commandsArray

  • Deleted src/services/index.js


Before

1


After

3


Removed

2


Successful

done

- Added Code Coverage

- Used Ava.js & Istanbul, a JavaScript test coverage tool.

- Imported nyc from Istanbul in particular for coverage purposes

- Ignored MacOS junk by adding it in .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants