re-enabled tests by default
This commit is contained in:
@@ -19,6 +19,12 @@
|
||||
<artifactId>pegdown</artifactId>
|
||||
<version>${pegdown.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit-version}</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package test.org.jetbrains.kotlin.kunit
|
||||
|
||||
import junit.framework.TestCase
|
||||
|
||||
class KUnitTest: TestCase() {
|
||||
|
||||
fun testAssert(): Unit {
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -56,7 +56,7 @@
|
||||
<id>compile-kotlin-sources</id>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
<!--<goal>testCompile</goal>-->
|
||||
<goal>testCompile</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
|
||||
@@ -29,15 +29,6 @@
|
||||
<plugin>
|
||||
<groupId>com.goldin.plugins</groupId>
|
||||
<artifactId>kotlin-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>compile-kotlin-sources</id>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
<goal>testCompile</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
@@ -31,6 +31,12 @@
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -11,7 +11,7 @@ class GenerateSiteTest : TestCase() {
|
||||
val siteOutputDir = File(srcDir, "../../../target/site")
|
||||
|
||||
// TODO find version from environment?
|
||||
val version = "snapshot"
|
||||
val versionDir = "snapshot"
|
||||
|
||||
fun testGenerateSite(): Unit {
|
||||
val generator = SiteGenerator(srcDir, siteOutputDir)
|
||||
@@ -19,7 +19,7 @@ class GenerateSiteTest : TestCase() {
|
||||
}
|
||||
|
||||
fun testGenerateStdlibKDoc(): Unit {
|
||||
val outDir = File(siteOutputDir, "versions/$version/apidocs")
|
||||
val outDir = File(siteOutputDir, "versions/$versionDir/apidocs")
|
||||
println("Generating stdlib KDocs to $outDir")
|
||||
|
||||
copyDocResources(outDir)
|
||||
@@ -27,6 +27,8 @@ class GenerateSiteTest : TestCase() {
|
||||
args.setSrc("../stdlib/src")
|
||||
args.setDocOutputDir(outDir.toString())
|
||||
args.setOutputDir("target/classes-stdlib")
|
||||
val config = args.docConfig
|
||||
config.title = "Kotlin API"
|
||||
|
||||
val compiler = KDocCompiler()
|
||||
compiler.exec(System.out, args)
|
||||
|
||||
Reference in New Issue
Block a user