You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project with is build or run by sbt-jmh contains Test / skip := true, well, it produces a jar which can't be used at all.
Any benchmark fails as:
[info] # JMH version: 1.32
[info] # VM version: JDK 1.8.0_322, OpenJDK 64-Bit Server VM, 25.322-b06
[info] # VM invoker: /Library/Java/JavaVirtualMachines/openjdk8-temurin/Contents/Home/jre/bin/java
[info] # VM options: <none>
[info] # Blackhole mode: full + dont-inline hint
[info] # Warmup: 5 iterations, 10 s each
[info] # Measurement: 5 iterations, 10 s each
[info] # Timeout: 10 min per iteration
[info] # Threads: 1 thread, will synchronize iterations
[info] # Benchmark mode: Throughput, ops/time
[info] # Benchmark: test.TestBenchmark.readFromFile
[info] # Run progress: 66.67% complete, ETA 00:00:01
[info] # Fork: 1 of 5
[info] <failure>
[info] java.lang.IllegalArgumentException: Benchmark does not match a class
[info] at org.openjdk.jmh.util.ClassUtils.loadClass(ClassUtils.java:94)
[info] at org.openjdk.jmh.runner.BenchmarkHandler.<init>(BenchmarkHandler.java:69)
[info] at org.openjdk.jmh.runner.BaseRunner.runBenchmark(BaseRunner.java:232)
[info] at org.openjdk.jmh.runner.BaseRunner.doSingle(BaseRunner.java:138)
[info] at org.openjdk.jmh.runner.BaseRunner.runBenchmarksForked(BaseRunner.java:75)
[info] at org.openjdk.jmh.runner.ForkedRunner.run(ForkedRunner.java:72)
[info] at org.openjdk.jmh.runner.ForkedMain.main(ForkedMain.java:84)
[info] Caused by: java.lang.ClassNotFoundException: test.jmh_generated.TestBenchmark_readFromFile_jmhTest
[info] at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
[info] at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
[info] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
[info] at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
[info] at java.lang.Class.forName0(Native Method)
[info] at java.lang.Class.forName(Class.java:264)
[info] at org.openjdk.jmh.util.ClassUtils.loadClass(ClassUtils.java:73)
[info] ... 6 more
When a project with is build or run by
sbt-jmh
containsTest / skip := true
, well, it produces a jar which can't be used at all.Any benchmark fails as:
How to reproduce:
sbt-jmh-tester
#215 as local root.sbt ^^1.3.10 publishLocal
Test / skip := true
tosbt-jmh-tester/build.sbt
sbt jmh:run
insidesbt-jmh-tester
folderHere it is.
The text was updated successfully, but these errors were encountered: