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

Merge upstream master 20151222 #2

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

Conversation

JeetKunDoug
Copy link

DO NOT MERGE: This is a first attempt at pulling all changes from eproxus/master to our branch. Will be used post-2.2, and may need to be updated once we're ready for it.

Currently merges/tests cleanly.

myers and others added 30 commits May 3, 2014 07:20
Add Erlang 17.0 to the test matrix
…g the execution of tests when using erlang.mk and meck as a test dependency.
…m.make.all

Removed test and doc from target all in Makefile
Full version:
rebar 2.5.1 R15B03 20141014_122343 git 2.5.1-19-g9c7dae7
This prevents warnings about unknown functions in the erlang module.
Running tests was removed from make target all in
eproxus@30a116a7
Meck used to have 'namespaced_dict' while Hamcrest recently introduced
a similar macro, 'namespaced_types' for the same purpose.
In OTP 18.0 the affected non-namespaced types were completely removed and
using them results in a compile error instead of deprecation wagning in 17.
So hamcrest.hrl relies on the precense of 'namespaced_types' macro
to use the right type. Meck's test module meck_tests.erl includes this header
so the 'namespaced_types' macro also have to be defined in meck's test.config.
To eliminate duplication I chose to unite the above two macros and
use the more generic 'namespaced_types' name.
In order to avoid creating temporary files meck_cover needs direct
access to some unexported functions of cover.
In OTP 18.0 the internal API of cover changed a bit and
compile_beam/2 (which allows passing a binary instead just a filename)
was replaced by compile_beams/1.

See erlang/otp@ab435488
eproxus and others added 29 commits April 8, 2015 10:04
The string "An exception printed by SASL" was changed to "En exception
printed by SASL" ("An" => "En") during a reformatting of the text in
2011 via
eproxus@51ecfb4#diff-04c6e90faac2675aa89e2176d2eec7d8L39
This reverts the spelling of "an".
Turns out that we can't rely on the current working directory always
staying the same. The real world scenario is when Meck is cleaning up
after the last failed test case and Rebar changes directory from the
.eunit folder to the project root. Meck now stores absolute paths to
cover backup files.
Expectations set for a function do not apply to local invocations of that function.
This may not be obvious for first-time users
Document the caveat with mocking module-local calls.
…tion

Fix race condition between meck:unload/1 and calls to the mocked module
Filter out optional_callbacks attributes
'Problematic modules' list now includes global
Update 'problematic modules list'
The expectations are merged for the function/arity instead of replacing
the existing one
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.