Skip to content

Commit

Permalink
Fix the benchmark
Browse files Browse the repository at this point in the history
The benchmark got accidentally broken when
all the test projects were moved from spec to
test_projects. This commit fixes it.

Before:

```
➜  simplecov git:(main) ruby benchmarks/result.rb
Traceback (most recent call last):
	1: from benchmarks/result.rb:9:in `<main>'
benchmarks/result.rb:9:in `require_relative': cannot load such file -- /Users/dnnx/work/simplecov/spec/faked_project/lib/faked_project (LoadError)
```

After:

```
➜  simplecov git:(fix-benchmarks) ruby benchmarks/result.rb
Warming up --------------------------------------
generating a simplecov result
                         7.000  i/100ms
Calculating -------------------------------------
generating a simplecov result
                         78.386  (± 1.3%) i/s -    392.000  in   5.002603s
```
  • Loading branch information
DNNX authored and PragTob committed Oct 18, 2020
1 parent dd35066 commit 649c6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Coverage.start
# such meta, many wow
require_relative "../lib/simplecov"
require_relative "../spec/faked_project/lib/faked_project"
require_relative "../test_projects/faked_project/lib/faked_project"
result = Coverage.result

class MyFormatter
Expand Down

0 comments on commit 649c6eb

Please sign in to comment.