CoverMe
A Sublime Text 3 Plugin to view code coverage for any programming language's test framework.
Details
Installs
- Total 236
- Win 122
- Mac 81
- Linux 33
Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
CoverMe
A Sublime Text 3 Plugin to view code coverage for any programming language's test framework.
This plugin can easily be extended for any testing framework for any programming language.
Prograaming languages supported
- Go's
go test
- Python's
unittest
andcoverage.py
The basic paradigm followed by the plugin is: - Run the commands necessary to generate coverage output. - Parse the coverage output.
How to install?
- Clone this repository in your Packages folder.
- Package Control (under review)
How to use?
It is pretty easy to use this plugin.
First, Go to Preferences > Package Settings > CoverMe > Settings - User.
Update the required variables according to the Settings - Default
file.
For example, for Go:
"go" : {
"GOPATH" : "your gopath goes here"
}
After this, to view code coverage, press ctrl+shift+c
(you can override this in keymap) to be presented with various coverage modes, select one and coverage would be presented according to that.
Optional : Project level settings
For some projects, you would need to write your own custom coverage modes. To do that, create a new Sublime Project and in the .sublime-project
file:
{
"folders":
[
{
"path": "/home/shauryachats/go/src/test_package"
}
],
"settings":
{
"CoverMe": {
"go" : [
{
"title": "Custom Coverage Mode",
"basepath" : "/home/shauryachats/go/src/test_package",
"commands" : [
"go test -coverpkg=./... ./... -coverprofile cover.out"
]
}
]
}
}
}
Under the settings
key, create a CoverMe
key containing the list of coverage modes for each programming type.
Each coverage mode is of the form: “json { "title” : “the title on the quick draw panel”, “basepath” : “the base path for the project, where the commands are to be run”, “commands” : “a list of shell commands, which are run to produce coverage information.” }