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
The problem I ran into is that while all the tests run correctly, they fail when running the tests with excoveralls - it seems like redbug isn't able to extract the module/function info for Elixir modules that aren't part of the standard library.
I verified it's not related the module not being compiled in the test environment or being part of test/support/ as opposed to the main lib/
I suspect that it's caused by coveralls messing with the compilation / code loading, but I don't understand what's happening exactly. I checked that the :cover compile path (as it is used inside coveralls) is included in :code.get_path() and it is - making sure it's the first path in the list doesn't change anything.
If anyone has an idea what can be done (whether is a change to my approach, or patching either coveralls or redbug) so that I can keep the code coverage, I'd appreciate it.
The text was updated successfully, but these errors were encountered:
Hi,
I'm migrating rexbug to redbug 2.x and I already made the changes to get the basics up and running correctly.
The problem I ran into is that while all the tests run correctly, they fail when running the tests with excoveralls - it seems like redbug isn't able to extract the module/function info for Elixir modules that aren't part of the standard library.
Repro here.
With an elixir module
Foo.Bar
being defined:running redbug against it fails:
I verified it's not related the module not being compiled in the test environment or being part of
test/support/
as opposed to the mainlib/
I suspect that it's caused by coveralls messing with the compilation / code loading, but I don't understand what's happening exactly. I checked that the
:cover
compile path (as it is used inside coveralls) is included in:code.get_path()
and it is - making sure it's the first path in the list doesn't change anything.If anyone has an idea what can be done (whether is a change to my approach, or patching either coveralls or redbug) so that I can keep the code coverage, I'd appreciate it.
The text was updated successfully, but these errors were encountered: