Skip to content

Ruby coverage file path default #17

@borisrorsvort

Description

@borisrorsvort

Seems the default cov file generated by simplecov is coverage/.resultset.json
Tried with https://github.com/vicentllongo/simplecov-json that generate nvim-coverage current ruby cov path, but I get a error when loading the file. I also tried with renaming the default resultset to coverage and get the same error upon load.

coverage_file = "coverage/coverage.json",

the error:

Error executing vim.schedule lua callback: ...cker/start/nvim-coverage/lua/coverage/languages/ruby.lua:12: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
        [C]: in function 'pairs'
        ...cker/start/nvim-coverage/lua/coverage/languages/ruby.lua:12: in function 'sign_list'
        ...te/pack/packer/start/nvim-coverage/lua/coverage/init.lua:51: in function 'callback'
        ...te/pack/packer/start/nvim-coverage/lua/coverage/util.lua:9: in function 'safe_decode'
        ...cker/start/nvim-coverage/lua/coverage/languages/ruby.lua:42: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions