-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add Coverage reporting to coveralls.io #75
Conversation
Changes Unknown when pulling c1b13d6 on coverage-reporting into ** on master**. |
2 similar comments
Changes Unknown when pulling c1b13d6 on coverage-reporting into ** on master**. |
Changes Unknown when pulling c1b13d6 on coverage-reporting into ** on master**. |
what |
Changes Unknown when pulling f18f775 on coverage-reporting into ** on master**. |
1 similar comment
Changes Unknown when pulling f18f775 on coverage-reporting into ** on master**. |
README.md
Outdated
@@ -1,5 +1,7 @@ | |||
# kotct/dot | |||
|
|||
[![Build Status](https://travis-ci.org/kotct/dot.svg?branch=master)](https://travis-ci.org/kotct/dot) [![Coverage Status](https://coveralls.io/repos/github/kotct/dot/badge.svg)](https://coveralls.io/github/kotct/dot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these go on the same line as the title?
.travis.yml
Outdated
- emacs --script .emacs.d/test/lisp/run-tests.el | ||
- emacs --script ~/.emacs.d/init.el |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest changing both to ~/
.
- emacs --script .emacs.d/test/lisp/run-tests.el | ||
- emacs --script .emacs.d/init.el |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ~/
for both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had a discussion about this already, let me find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, my apologies, I thought there was a ~/
at the start of this path and I was very confused.
.emacs.d/test/lisp/run-tests.el
Outdated
;; override a local function that fixes this | ||
(advice-add | ||
#'undercover--wildcards-to-files :override | ||
(lambda (wildcards) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't wildcards
unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm overriding a function that takes an argument so I need to allow an argument to be passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, does the argument need to be the same though? (Like, can you do (lambda (_)
on this line instead? Or (_wildcards)
?) I haven't tested this but we might get lexical binding errors, see EL manual § 11.9.4 "Using Lexical Binding":
(To silence byte-compiler warnings about unused variables, just use a variable name that start with an underscore. The byte-compiler interprets this as an indication that this is a variable known not to be used.)
If it's not used, changing it to underscore would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use lexical binding in our code, so there's no way for emacs to know if a variable is unused. That said, it probably would be good style to put the underscore anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, style was what I was more concerned about anyways.
@@ -4,4 +4,7 @@ | |||
(package-initialize) | |||
(package-refresh-contents) | |||
|
|||
;; add undercover for coverage reporting | |||
(setf kotct/dependency-list (cons 'undercover kotct/dependency-list)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Erm. Any particular reason for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So undercover is installed, but only on Travis (via install script instead of on init).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see.
https://coveralls.io/github/kotct/dot
Also add badges for travis and coveralls to the readme.
This is a part of #53.