Skip to content

Commit

Permalink
Add KPlatform & KDefaultPlatform (#12)
Browse files Browse the repository at this point in the history
* Add TemplateContext and related classes

* Add TemplateContext and associated classes to LogContext

* Add MessageParser and DateTimeFormat tests

* Add IgnoreIos annotation to skip tests running on iOS (iOS is not implemented yet and would fail)

* Finish adding tests

* Add KTags and add it to KLogContext

* Add Platform and DefaultPlatform

* Formatting

* Fix iOS build error

* Fix findLoggingClass not working on Kotlin through StackWalker

* Formatting

* Remove print

* Fix tests

* Add Klass documentation
  • Loading branch information
buenaflor authored Aug 8, 2023
1 parent c105971 commit ac0e436
Show file tree
Hide file tree
Showing 16 changed files with 1,189 additions and 500 deletions.
12 changes: 9 additions & 3 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private val deleteServiceFilesFromBuildDir by
}

/**
* Task for running tests from the FluentLoggerTest.java file.
* Task for running tests using FluentLogger.
*
* It depends on deleteServiceFilesFromBuildDir in order to remove service files that persist during
* DefaultPlatformServiceLoadingTest. If not deleted, this will automatically try to load the
Expand All @@ -140,12 +140,18 @@ private val deleteServiceFilesFromBuildDir by
*/
private val jvmFluentLoggerTest by
tasks.registering(Test::class) {
filter { includeTestsMatching("*.testCreate") }
filter {
includeTestsMatching("*.testCreate")
includeTestsMatching("KPlatformTest.testNotCrashing")
}
dependsOn(deleteServiceFilesFromBuildDir)
}

tasks.named<Test>("jvmTest") {
filter { excludeTestsMatching("*.testCreate") }
filter {
excludeTestsMatching("*.testCreate")
excludeTestsMatching("KPlatformTest.testNotCrashing")
}
finalizedBy(jvmFluentLoggerTest)
}

Expand Down
Loading

0 comments on commit ac0e436

Please sign in to comment.