I have the following Case Class...
case class Test(name:String)
and I add the following test...
class TestSpec extends AnyFunSpec with should.Matchers{
describe("Tests"){
it("Test 1"){
val item = Test("name")
item.name should be("name")
}
}
}
but when I run mvn test my Test coverage tool (Jacoco) shows 0%...
I also tried...
it("Test 2"){
val item = Test("name")
inside(item){
case Test(name) =>{
name should be("name")
}
}
}
But it is still showing 0%
How am I supposed to Unit Test these items to get the appropriate coverage?
