Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

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

wants to merge 3 commits into from

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