-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
0094088
to
39fbe3e
Compare
This comment has been minimized.
This comment has been minimized.
1 similar comment
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
39fbe3e
to
90a0b10
Compare
bfec6e0
to
111ed19
Compare
WIP: promising lead on #11 Still having trouble with unwinding errors
658eca9
to
0eb4d73
Compare
{: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"}, |
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.
In general I prefer to rely on Erlang library itself, as a way to avoid dependency problems, like opencensus_elixir
lagging behind.
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.
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 |
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.
Why not store all that helper modules in test/support
?
Open for feedback before merging. Anyone got any better ideas than spamming
Application.ensure_started/1
in thesetup_all
to override theruntime: false
?I think
Span
andSpanCaptureReporter
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.