Skip to content

KSP processing testing tools wrapped com.github.tschuchortdev:kotlin-compile-testing-ksp

Notifications You must be signed in to change notification settings

AntonButov/compilation

Repository files navigation

Setup

dependencyResolutionManagement {
	repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
	repositories {
		mavenCentral()
		maven { url = uri("https://jitpack.io") }
		}
	}

implementation("com.github.antonbutov:compilation:<$last-version>")

How to use

  val correctCode =
    """
        class Test {
            fun test(): String {
                return "test"
            }
        }
    """.trimIndent()

  @Test
  fun `correct code should compile`() {
    correctCode compile { resolver: Resolver ->
      assertTrue { true }
    }
  }

About

KSP processing testing tools wrapped com.github.tschuchortdev:kotlin-compile-testing-ksp

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages