JUnit Test extends from TestCase

37 views
Skip to first unread message

Christian Henle

unread,
Nov 5, 2013, 10:46:58 AM11/5/13
to junit-be...@googlegroups.com

Hallo,

how can I change a JUnit Test which extends from TestCase to a JUnitBenchmarkTest?

Thank you!


Dawid Weiss

unread,
Nov 6, 2013, 4:44:20 AM11/6/13
to junit-benchmarks
Hi Christian,

You need to add a benchmark rule to your test class.

@Rule
public TestRule benchmarkRun = new BenchmarkRule();

Dawid
> --
> You received this message because you are subscribed to the Google Groups
> "JUnitBenchmarks: Performance Benchmarking for JUnit4" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to junit-benchmar...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages