Skip to content

Commit

Permalink
jacoco excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
salamonpavel committed Apr 30, 2024
1 parent 57ffa95 commit 7ab2215
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
8 changes: 7 additions & 1 deletion project/JacocoSetup.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ object JacocoSetup {
}

def jacocoProjectExcludes(): Seq[String] = {
Seq()
Seq(
"**.model.*",
"**.api.http.*",
"**.config.*",
"za.co.absa.atum.server.Main*",
"za.co.absa.atum.server.Constants*"
)
}

}
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/*
* Copyright 2021 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

* Copyright 2021 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package za.co.absa.atum.server.api.database.runs.functions

import za.co.absa.atum.model.dto.{PartitionDTO, PartitioningDTO}
Expand All @@ -25,12 +24,10 @@ import zio.test._
import zio.test.Assertion._

object GetPartitioningAdditionalDataSpec extends ConfigProviderSpec {

override def spec: Spec[TestEnvironment with Scope, Any] = {

suite("GetPartitioningAdditionalDataSpec")(
test("Returns expected sequence of Additional data with provided partitioning") {
val partitioningDTO: PartitioningDTO = Seq(PartitionDTO("string1", "string1"), PartitionDTO("string2", "string2"))
val partitioningDTO: PartitioningDTO = Seq(PartitionDTO("stringA", "stringB"), PartitionDTO("string2", "string2"))
for {
getPartitioningAdditionalData <- ZIO.service[GetPartitioningAdditionalData]
exit <- getPartitioningAdditionalData(partitioningDTO).exit
Expand All @@ -41,7 +38,5 @@ object GetPartitioningAdditionalDataSpec extends ConfigProviderSpec {
PostgresDatabaseProvider.layer,
TestTransactorProvider.layerWithRollback,
)

}

}

0 comments on commit 7ab2215

Please sign in to comment.