Add coverage test

This commit is contained in:
Volker Berlin 2018-05-20 12:51:03 +02:00
parent c8ef4fd3c7
commit 906e5e0481
2 changed files with 19 additions and 0 deletions

View File

@ -3,6 +3,7 @@ JWebAssembly
[![Build Status](https://travis-ci.org/i-net-software/JWebAssembly.svg)](https://travis-ci.org/i-net-software/JWebAssembly)
[![License](https://img.shields.io/github/license/i-net-software/jwebassembly.svg)](https://github.com/i-net-software/jwebassembly/blob/master/LICENSE.txt)
[![Coverage Status](https://coveralls.io/repos/github/i-net-software/JWebAssembly/badge.svg?branch=master)](https://coveralls.io/github/i-net-software/JWebAssembly?branch=master)
JWebAssembly is a Java to [WebAssembly](http://webassembly.org/) compiler. It uses Java class files as input. That it can compile any language that compile to Java bytecode.
As output it generates the binary format (.wasm file) or the text format (.wat file).

View File

@ -4,6 +4,8 @@ plugins {
apply plugin: 'java'
version = '0.1'
repositories {
jcenter()
}
@ -56,3 +58,19 @@ test {
testLogging.exceptionFormat = 'full'
}
/****************************************
* Coverage
****************************************/
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
jacocoTestReport {
tasks.coveralls.dependsOn it
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
check.dependsOn tasks.coveralls