-
-
Notifications
You must be signed in to change notification settings - Fork 231
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 test/cover_test_module.beam to rebar.config's clean files #47
Comments
Is the cleaning done automatically before running Dialyzer? If not, I think the best solution is to delete the beam file in the cleanup after the test case that needs it. |
Yes, rebar clean is called before running dialyzer. I haven't checked the details but I think one of meck's eunit tests is generating this beam file (as a test input?). |
Yes, it's a file that's compile manually by the test code (because it needs to be compiled with different parameters for different tests). I'll look at this when I have time. If you have a patch, I'll gladly accept it. |
Hmm, I don't seem to have a Dialyzer command in rebar anymore. How do you run Dialyzer? |
I use a makefile for this purpose https://github.com/norton/manifests/blob/master/rebar.mk |
So, can you either clean from that makefile or patch the tests to remove the modules when done? That'd be greatly appreciated! |
I submitted a pull request for this issue. |
Thanks! |
Running eunit and then dialyzer triggers the following error below.
Can you consider adding this file to rebar.config's clean files?
{clean_files, ["test/cover_test_module.beam"]}.
==> src (compile)
dialyzing w/spec: ...
dialyzer --plt /Users/norton/.dialyzer_plt.R14B04 -Wunmatched_returns -r ./lib | fgrep -v -f dialyze-ignore-warnings.txt
Checking whether the PLT /Users/norton/.dialyzer_plt.R14B04 is up-to-date... yes
Compiling some key modules to native code... done in 0m47.91s
Proceeding with analysis...
dialyzer: Analysis failed with error: Could not scan the following file(s): [{"src/lib/meck/test/cover_test_module.beam",
" Could not get abstract code for: src/lib/meck/test/cover_test_module.beam\n Recompile with +debug_info or analyze starting from source code"}]
Last messages in the log cache:
Reading files and computing callgraph...
The text was updated successfully, but these errors were encountered: