raniejade
04/15/2017, 3:24 AMhhariri
snowe
04/20/2017, 11:01 PMError:Kotlin: [Internal Error] java.io.IOException: org.iq80.snappy.CorruptionException: Recorded length is 32768 bytes but actual length after decompression is 0 bytes
at com.intellij.util.io.CompressedAppendableFile.loadChunk(CompressedAppendableFile.java:206)
at com.intellij.util.io.CompressedAppendableFile.access$100(CompressedAppendableFile.java:38)
at com.intellij.util.io.CompressedAppendableFile$FileChunkReadCache.get(CompressedAppendableFile.java:499)
at com.intellij.util.io.CompressedAppendableFile$SegmentedChunkInputStream.read(CompressedAppendableFile.java:539)
at java.io.DataInputStream.readFully(DataInputStream.java:195)
at com.intellij.util.io.PersistentHashMapValueStorage.readBytes(PersistentHashMapValueStorage.java:388)
at com.intellij.util.io.PersistentHashMap.doGet(PersistentHashMap.java:530)
at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:484)
at org.jetbrains.kotlin.incremental.storage.LazyStorage.get(LazyStorage.kt:67)
at org.jetbrains.kotlin.incremental.storage.LookupMap.get(LookupMap.kt:30)
at org.jetbrains.kotlin.incremental.LookupStorage.addAll(LookupStorage.kt:78)
at org.jetbrains.kotlin.jps.build.KotlinBuilder.updateLookupStorage(KotlinBuilder.kt:637)
at org.jetbrains.kotlin.jps.build.KotlinBuilder.doBuild(KotlinBuilder.kt:312)
at org.jetbrains.kotlin.jps.build.KotlinBuilder.build(KotlinBuilder.kt:181)
at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1263)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:940)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1012)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:903)
at org.jetbrains.jps.incremental.IncProjectBuilder.access$500(IncProjectBuilder.java:82)
at org.jetbrains.jps.incremental.IncProjectBuilder$BuildParallelizer.lambda$queueTask$0(IncProjectBuilder.java:874)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.iq80.snappy.CorruptionException: Recorded length is 32768 bytes but actual length after decompression is 0 bytes
at org.iq80.snappy.SnappyDecompressor.uncompress(SnappyDecompressor.java:55)
at org.iq80.snappy.Snappy.uncompress(Snappy.java:85)
at com.intellij.util.CompressionUtil.readCompressedWithoutOriginalBufferLength(CompressionUtil.java:97)
at com.intellij.util.io.CompressedAppendableFile.decompress(CompressedAppendableFile.java:370)
at com.intellij.util.io.CompressedAppendableFile.loadChunk(CompressedAppendableFile.java:190)
... 26 more
snowe
04/20/2017, 11:05 PMericksli
04/22/2017, 6:56 AMPreconditionViolationException: Could not load class with name: net.swiftzer.metroride.checkfare.nodes.FareTripLegSpec
when I run my Spek test in Android Studio?ericksli
04/22/2017, 7:07 AMraniejade
04/22/2017, 1:36 PMFor Android Studio, you need to add a Before launch gradle step to compile your test classes. If you have the default setup, adding assembleDebugUnitTest should suffice.
ericksli
04/22/2017, 1:41 PMhhariri
hhariri
jackmiras
04/24/2017, 1:52 PMgradle build
task on my project:
Exception in thread "main" java.lang.AbstractMethodError: Method org/jetbrains/spek/engine/Scope$Group.getType()Lorg/junit/platform/engine/TestDescriptor$Type; is abstractTest
at org.jetbrains.spek.engine.Scope$Group.getType(Scope.kt)
at org.junit.platform.launcher.TestIdentifier.from(TestIdentifier.java:60)
at org.junit.platform.launcher.TestPlan.lambda$from$0(TestPlan.java:78)
at org.junit.platform.engine.TestDescriptor.accept(TestDescriptor.java:245)
at org.junit.platform.engine.TestDescriptor.lambda$accept$0(TestDescriptor.java:247)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.junit.platform.engine.TestDescriptor.accept(TestDescriptor.java:247)
at org.junit.platform.launcher.TestPlan.lambda$from$1(TestPlan.java:79)
at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:608)
at org.junit.platform.launcher.TestPlan.from(TestPlan.java:79)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:130)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:87)
at org.junit.platform.console.tasks.ConsoleTestExecutor.executeTests(ConsoleTestExecutor.java:65)
at org.junit.platform.console.tasks.ConsoleTestExecutor.lambda$execute$0(ConsoleTestExecutor.java:57)
at org.junit.platform.console.tasks.CustomContextClassLoaderExecutor.invoke(CustomContextClassLoaderExecutor.java:33)
at org.junit.platform.console.tasks.ConsoleTestExecutor.execute(ConsoleTestExecutor.java:57)
at org.junit.platform.console.ConsoleLauncher.executeTests(ConsoleLauncher.java:79)
at org.junit.platform.console.ConsoleLauncher.execute(ConsoleLauncher.java:69)
at org.junit.platform.console.ConsoleLauncher.main(ConsoleLauncher.java:41)
:junitPlatformTest FAILED
Does anyone know why this happen or how fix it?jk
04/24/2017, 2:42 PMjunitPlatform {
platformVersion '1.0.0-M3'
}
jackmiras
04/24/2017, 2:59 PMjackmiras
04/24/2017, 2:59 PMjk
04/24/2017, 3:05 PMjk
04/24/2017, 3:05 PMjk
04/24/2017, 3:05 PMjackmiras
04/24/2017, 3:10 PMjackmiras
04/24/2017, 3:11 PMsnowe
04/25/2017, 10:21 PMINFO: Discovered TestEngines with IDs: []
Exception in thread "main" org.junit.platform.commons.util.PreconditionViolationException: Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath
at org.junit.platform.commons.util.Preconditions.condition(Preconditions.java:207)
at org.junit.platform.launcher.core.DefaultLauncher.<init>(DefaultLauncher.java:52)
at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:42)
at org.jetbrains.spek.tooling.runner.junit.JUnitPlatformSpekRunner.run(JUnitPlatformSpekRunner.kt:66)
at org.jetbrains.spek.tooling.MainKt.main(Main.kt:58)
snowe
04/25/2017, 10:21 PMINFO: Discovered TestEngines with IDs: []
Exception in thread "main" org.junit.platform.commons.util.PreconditionViolationException: Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath
at org.junit.platform.commons.util.Preconditions.condition(Preconditions.java:207)
at org.junit.platform.launcher.core.DefaultLauncher.<init>(DefaultLauncher.java:52)
at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:42)
at org.jetbrains.spek.tooling.runner.junit.JUnitPlatformSpekRunner.run(JUnitPlatformSpekRunner.kt:66)
at org.jetbrains.spek.tooling.MainKt.main(Main.kt:58)
snowe
04/25/2017, 10:26 PMsnowe
04/26/2017, 1:08 AMsnowe
04/26/2017, 2:06 AMhhariri
mesquka
04/26/2017, 2:26 PMsnowe
04/26/2017, 2:34 PMhhariri
snowe
04/27/2017, 3:50 PMINFO: Discovered TestEngines with IDs: [spek, junit-jupiter]
Running sample.SampleSpecs
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! - in sample.SampleSpecs
it should fail Time elapsed: 0.007 sec <<< FAILURE!
null
JUnit Jupiter Time elapsed: 0.012 sec <<< FAILURE!
null
also, we don't have jupiter in our project, we're using junit 4. will we be able to use jupiter just for the spek tests?snowe
04/27/2017, 8:22 PM