clocal-gcp icon indicating copy to clipboard operation
clocal-gcp copied to clipboard

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

Open angeryrohan opened this issue 6 years ago • 0 comments

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

angeryrohan avatar Nov 26 '18 04:11 angeryrohan