Report error when output directory not specified for build target

#KT-10505 Fixed
This commit is contained in:
Zalim Bashorov
2016-01-12 23:32:19 +03:00
parent 6b09c5dfae
commit 3df091e7cf
11 changed files with 86 additions and 0 deletions
@@ -717,6 +717,17 @@ class KotlinJpsBuildTest : AbstractKotlinJpsBuildTestCase() {
assertFalse(File(storageRoot, "targets/java-production/module2/kotlin").exists())
}
fun testKotlinProjectWithEmptyProductionOutputDir() {
initProject()
val result = makeAll()
result.assertFailed()
result.checkErrors()
}
fun testKotlinProjectWithEmptyTestOutputDir() {
doTest()
}
private fun BuildResult.checkErrors() {
val actualErrors = getMessages(BuildMessage.Kind.ERROR)
.map { it as CompilerMessage }