Skip to content

Commit

Permalink
add coverage and dummy test for agent-common
Browse files Browse the repository at this point in the history
  • Loading branch information
Avvessalom authored and SerVB committed Jul 27, 2021
1 parent 836428a commit 7ea4ba8
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Expand Up @@ -29,6 +29,7 @@ jobs:
./gradlew check build
./gradlew :projector-server-core:jacocoTestReport
./gradlew :projector-common:jacocoTestReport
./gradlew :projector-agent-common:jacocoTestReport
- name: test coverage
uses: codecov/codecov-action@v1
with:
Expand Down
20 changes: 20 additions & 0 deletions projector-agent-common/build.gradle.kts
Expand Up @@ -24,6 +24,25 @@
plugins {
kotlin("jvm")
`maven-publish`
jacoco
}

jacoco {
toolVersion = "0.8.7"
}

tasks.withType<JacocoReport> {
reports {
xml.isEnabled = true
xml.destination = file(layout.buildDirectory.dir("../../JacocoReports/jacocoReportAgentCommon.xml"))
csv.required.set(false)
html.outputLocation.set(layout.buildDirectory.dir("jacocoHtmlProjectorClient"))
}
}

tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
}

kotlin {
Expand All @@ -42,4 +61,5 @@ val javassistVersion: String by project

dependencies {
implementation("org.javassist:javassist:$javassistVersion")
testImplementation(kotlin("test"))
}
@@ -0,0 +1,34 @@
/*
* MIT License
*
* Copyright (c) 2019-2021 JetBrains s.r.o.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package `org,jetbrains`.projector.agent.common

import kotlin.test.Test
import kotlin.test.assertTrue

class MiskTest {
@Test
fun `empty test for coverage building`() {
assertTrue(true)
}
}

0 comments on commit 7ea4ba8

Please sign in to comment.