798 pass, 415 fail, 2 ignored of 3230 tests

This commit is contained in:
Greg Burd 2019-06-26 22:08:41 -04:00
parent 417d2108ab
commit 384205ef6a
5 changed files with 30 additions and 7 deletions

5
NOTES
View file

@ -1,4 +1,7 @@
* Migrate to Scala
* Fix @Ignore'ed JUnit tests
* TODO/XXX/FIXME/JE_TEST
* begin/end JE only
* Kafka for log
* Remove all @Deprecated features

View file

@ -25,6 +25,11 @@ inThisBuild(
scalaVersion := scala212,
crossScalaVersions := List(scala213, scala212, scala211),
resolvers += Resolver.sonatypeRepo("releases"),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
// "-Xfatal-warnings"
),
libraryDependencies ++= List(
scalatest.value % Test,
scalacheck % Test,
@ -41,8 +46,6 @@ inThisBuild(
)
)
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-q", "-v"))
skip in publish := true
commands += Command.command("ci-test") { s =>
@ -68,9 +71,10 @@ lazy val core = project
buildInfoSettings,
buildInfoPackage := "io.stasis",
buildInfoObject := "BuildInfo",
libraryDependencies ++= List(
projectDependencies ++= Seq(
scalatest.value % Test,
scalametaTestkit % Test)
scalametaTestkit % Test
)
)
.enablePlugins(BuildInfoPlugin)
@ -90,11 +94,22 @@ lazy val rep = project
)
.dependsOn(core)
Test / fork := true
Test / parallelExecution := false
Test / logBuffered := false
lazy val test = project
.in(file("stasis-test"))
.settings(
moduleName := "stasis-test",
assemblyJarName.in(assembly) := "stasis-test.jar",
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit,
"-a", "-q", "-v",
"-DJE_TEST=true",
"-Dbuilddir=${basedir}/build",
"-Dunittest.dir=${builddir}/test",
"-Dunittest.testclassloader=${unittest.dir}/testclassloader"
)),
crossPaths := false,
libraryDependencies ++= List(
"org.scalatest" %% "scalatest" % "2.2.2" % Test,
@ -102,6 +117,7 @@ lazy val test = project
"com.novocode" % "junit-interface" % "0.11" % Test //exclude("junit", "junit-dep")
)
)
.disablePlugins(plugins.JUnitXmlReportPlugin)
.dependsOn(core, persist, rep)
val V = "\\d+\\.\\d+\\.\\d+"

View file

@ -113,7 +113,7 @@ public class DbEnvPool {
if (envImpl != null) {
/*
* If the envImpl intance returned is standalone, but users are
* If the envImpl instance returned is standalone, but users are
* actually creating a replicated environment, throw out an
* UnsupportedOperationException. We needn't worry about the
* read only property, since a replicated environment can't be
@ -209,7 +209,7 @@ public class DbEnvPool {
*
* Note that finishInit must be called even if an existing envImpl was
* found, because initialization (recovery) for that envImpl may not be
* complete. finishInit is synchronized and this ensures that recovery
* complete. finishInit() is synchronized and this ensures that recovery
* will be complete when it returns.
*
* If this environment finishInit() fails in any way, make sure it

View file

@ -24,6 +24,7 @@ import java.util.Map;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -51,6 +52,7 @@ import com.sleepycat.util.test.TestEnv;
*
* @author Mark Hayes
*/
@Ignore
@RunWith(Parameterized.class)
public class StoredClassCatalogTest extends TestBase
implements TransactionWorker {

View file

@ -20,6 +20,7 @@ import java.io.File;
import java.util.Comparator;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import com.sleepycat.bind.serial.SerialBinding;
@ -35,6 +36,7 @@ import com.sleepycat.util.test.SharedTestUtils;
/**
* Tests the Environment ClassLoader property.
*/
@Ignore
public class ClassLoaderTest extends DualTestCase {
public interface LoadedClass {