Skip to content

Commit

Permalink
fix: beam file path search, close #8
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed Apr 17, 2023
1 parent a3f8a45 commit 2bbbd9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/path_reader.ex
Expand Up @@ -29,9 +29,11 @@ defmodule ExIntegrationCoveralls.PathReader do
app_beam_dir = app_dir <> "/ebin"

beam_file_path_list = File.ls!(app_beam_dir)

beam_file_path =
Enum.filter(beam_file_path_list, fn filename -> String.ends_with?(filename, "beam") end)
|> List.first()

beam_file_abs_path = app_beam_dir <> "/" <> beam_file_path

{:ok, {_, [debug_info]}} =
Expand Down

0 comments on commit 2bbbd9c

Please sign in to comment.