Skip to content

Commit

Permalink
tests: uncomment test and tag will_fail
Browse files Browse the repository at this point in the history
  • Loading branch information
evnu committed Oct 20, 2023
1 parent c72d232 commit aeb6889
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/instrument_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,17 @@ defmodule PropCheck.Test.InstrumentTester do
Logger.debug(inspect(mod.module_info(:attributes)))
end

@tag will_fail: true
# Fails as asn1rt_nif is not available
# FIXME
# test "instrument an entire application" do
# Logger.debug("All Apps: #{inspect(Application.loaded_applications())}")
# # The asn1 compiler is not really used, so no damage is expected
# app = :asn1
# assert all_modules = Application.spec(app, :modules)
# Enum.each(all_modules, fn m -> assert not Instrument.is_instrumented?(m) end)

# assert :ok == Instrument.instrument_app(app, MessageInstrumenter)

# Enum.each(all_modules, fn m -> assert Instrument.is_instrumented?(m) end)
# end
test "instrument an entire application" do
Logger.debug("All Apps: #{inspect(Application.loaded_applications())}")
# The asn1 compiler is not really used, so no damage is expected
app = :asn1
assert all_modules = Application.spec(app, :modules)
Enum.each(all_modules, fn m -> assert not Instrument.is_instrumented?(m) end)

assert :ok == Instrument.instrument_app(app, MessageInstrumenter)

Enum.each(all_modules, fn m -> assert Instrument.is_instrumented?(m) end)
end
end

0 comments on commit aeb6889

Please sign in to comment.