Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement running a single benchmark by specifying the line number #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arjan
Copy link

@arjan arjan commented Mar 13, 2017

See #58

end

# 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