-
Notifications
You must be signed in to change notification settings - Fork 40
test(spec): move spec test runners to test folder #699
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
Conversation
…us into move-runners-to-test
@@ -50,7 +50,6 @@ defmodule LambdaEthereumConsensus.P2P.BlockDownloader do | |||
{:ok, chunks} <- parse_response(response_chunk), | |||
{:ok, blocks} <- decode_chunks(chunks), | |||
:ok <- verify_batch(blocks, slot, count) do | |||
# TODO: handle cases where slot is empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated, but this comment doesn't apply anymore.
@@ -12,7 +12,8 @@ defmodule LambdaEthereumConsensus.MixProject do | |||
elixirc_paths: compiler_paths(Mix.env()), | |||
warn_test_pattern: "_remove_warning.exs", | |||
preferred_cli_env: [ | |||
dialyzer: :test | |||
dialyzer: :test, | |||
generate_spec_tests: :test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the main change, running the task in :test env so that the runners are included as part of the compilation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fc1135e
to
d98a143
Compare
Motivation
We shouldn't have test runner code in our lib folder. I understand that we did this because we thought there was no other way, but there is.