Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@arjan
Copy link

@arjan arjan commented Mar 13, 2017

See #58


# TODO: extract logging from this function and number running tests externally
defp run_grouped_tests(groups, count, follow, bench_config) do
count = groups |> Map.values() |> List.flatten() |> Enum.count()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this calculation need to happen here? The function parameter count is no longer used at all.

end
end

defp normalize_files({paths, opts}) do
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if multiple files with line numbers are passed on the command line? In that case, it will explode with a file not found error. We should either support running multiple benchmarks on specific lines or provide a more helpful error message. Up to you.

@alco
Copy link
Owner

alco commented Aug 1, 2017

Thanks for your contribution! I've left a few comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants