GithubHelp home page GithubHelp logo

coverlay-for-scala-example's Introduction

Coverlay for Scala

This is some Elisp to show code coverage directly in your Scala files. It integrates Coverlay with a few Scala modes for Emacs.

The idea is to produce an lcov from your cobertura files, and then activate coverlay. Also we want Emacs to do the whole thing for us, so also the generation of the coverage report is done asynchronously.

Check out this blog for more details: https://ag91.github.io/blog/2021/01/11/coverlay-for-scala-or-how-to-produce-lcov-from-cobertura/

I do this for Scala, but I guess as long as you produce cobertura.xml, you can always go back to lcov by changing this code slightly (get in touch if you would like that).

Installation and Dependencies

This project depends on the following external dependencies:

  • sbt-scoverage

And the following Emacs packages:

  • coverlay
  • async.el
  • dash.el
  • s.el
  • projectile.el
  • scala-mode.el
  • esxml.el

If you use use-package and you are on a Linux system, you can try things out in a clean Emacs:

(require 'package)
(eval-and-compile
  (setq
   package-archives
   '(("melpa-stable" . "https://stable.melpa.org/packages/")
     ("melpa" . "https://melpa.org/packages/")
     ("marmalade"   . "https://marmalade-repo.org/packages/")
     ("org"         . "https://orgmode.org/elpa/")
     ("gnu"         . "https://elpa.gnu.org/packages/"))))
(package-initialize)

 ;;; Bootstrap use-package
;; Install use-package if it's not already installed.
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(setq use-package-always-ensure 't)
(require 'use-package)
(require 'bind-key)
(use-package coverlay)
(use-package async)
(use-package dash)
(use-package f)
(use-package s)
(use-package scala-mode)
(use-package esxml)
(use-package projectile)
emacs -Q -l /tmp/minimal-setup.el -l ./coverlay-for-scala.el

coverlay-for-scala-example's People

Contributors

ag91 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.