Skip to content
class method

Coverage.setup

(?lines: bool, ?branches: bool, ?methods: bool, ?eval: bool) -> nil
(oneshot_lines: bool, ?branches: bool, ?methods: bool, ?eval: bool) -> nil
(:all) -> nil
Coverage.setup => nil
Coverage.setup(:all) => nil
Coverage.setup(lines: bool, branches: bool, methods: bool, eval: bool) => nil
Coverage.setup(oneshot_lines: true) => nil

Set up the coverage measurement.

Note that this method does not start the measurement itself. Use Coverage.resume to start the measurement.

You may want to use Coverage.start to setup and then start the measurement.

See also .running? .start .resume .state also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1