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

Add integration test #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add integration test #17

wants to merge 2 commits into from

Conversation

garthk
Copy link
Collaborator

@garthk garthk commented Jun 22, 2019

Open for feedback before merging. Anyone got any better ideas than spamming Application.ensure_started/1 in the setup_all to override the runtime: false?

I think Span and SpanCaptureReporter demonstrate opencensus-beam/opencensus_elixir#18 well: why should everyone working with spans have to duplicate either? There's enough noise in the test file just getting Absinthe ready.

@codecov-io

This comment has been minimized.

1 similar comment
@codecov-io
Copy link

codecov-io commented Jun 23, 2019

Codecov Report

Merging #17 into master will increase coverage by 63.36%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #17       +/-   ##
==========================================
+ Coverage   28.94%   92.3%   +63.36%     
==========================================
  Files           6       7        +1     
  Lines          38      39        +1     
==========================================
+ Hits           11      36       +25     
+ Misses         27       3       -24
Impacted Files Coverage Δ
lib/opencensus/absinthe/plug.ex 0% <0%> (ø)
lib/opencensus/absinthe/middleware.ex 95.23% <0%> (+57.14%) ⬆️
lib/opencensus/absinthe/acc.ex 75% <0%> (+75%) ⬆️
lib/opencensus/absinthe/phase/pop.ex 100% <0%> (+100%) ⬆️
lib/opencensus/absinthe.ex 100% <0%> (+100%) ⬆️
lib/opencensus/absinthe/phase/push.ex 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36ef198...39fbe3e. Read the comment docs.

WIP: promising lead on #11

Still having trouble with unwinding errors
{:licensir, "~> 0.4.0", only: :test},
{:mix_test_watch, "~> 0.8", only: :test},
{:opencensus, "~> 0.9.2"},
{:opencensus_elixir, "~> 0.4.0"}
{:opencensus_elixir, "~> 0.4.0"},
Copy link
Member

Choose a reason for hiding this comment

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

In general I prefer to rely on Erlang library itself, as a way to avoid dependency problems, like opencensus_elixir lagging behind.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm with you, but I'm also averse to copy-paste maintenance. The only alternative is dragging the responsibility to the core package, which has had response time problems in the past and excludes any help from Elixir developers. Strikes me as especially odd to do when the problem is had by the Elixir developers e.g. Logger.metadata sync and friendlier ways to get to the contents of the records. Some of that'll go away depending on @tsloughter's new behaviour design. Some won't.

end
end

defmodule MyApp.TracePlug do
Copy link
Member

Choose a reason for hiding this comment

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

Why not store all that helper modules in test/support?

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.

4 participants