Chris Bernard
25538e071f
Fixed 3 bugs in rebar_eunit. Added EUnit tests to capture them.
1. When running the eunit command with the convention of putting
tests in "*_tests" modules, eunit would run those tests twice. This
is because: 1) eunit:test/1 will naturally look for foo's tests both
in foo, and in foo_tests, and 2) eunit:test/1 was being folded over
all project modules. The fix is to filter "*_tests" modules from the
list passed to eunit:test/1.
2. When running the eunit command with cover enabled and tests in a
'test' directory, cover would error because it couldn't find the
source code for those tests. This is because cover:analyze/3 will
only find module source in "." and "../src". This is hard-coded in
cover :-(. Since cover shouldn't be calculating code coverage on test
code anyway, the fix is to not fold cover:analyze/3 over
non-production code.
3. When running the eunit command with cover enabled and a test suite
defined, cover would only attempt to calculate coverage on the the
test suite itself. This was because only the suite was passed to
cover:analyze/3. The fix is to fold cover:analyze/3 over all the
production code, filtering out the suite module if it is defined.
15 years ago
Vagabond
50832a1a14
Don't detect the source file as an include of itself
15 years ago
Vagabond
a3f8489340
Move the .erl sorting to the right place
15 years ago
Vagabond
c4d3f0ea65
Fix dependancy checking for headers by ensuring "include" is always in the eep IncludePath
15 years ago
Vagabond
4ce01860e9
Compile parse transform and custom behaviours first
15 years ago
Tuncer Ayaz
56e30351f7
Add install command target= var to bash completion
15 years ago
Tuncer Ayaz
92e667b062
Add missing mode setting in Emacs file variables
15 years ago
Tuncer Ayaz
23781ae460
Fix unused var warning
15 years ago
theiw
8a3ad89f7c
Refactor eunit and cover
15 years ago
Dave Smith
872076be3f
Adding cleaner module to permit users to specify their own set of files to delete
15 years ago
Dave Smith
28d3b75641
Fix bug in templater where escript was not found in subdirs were specified in rebar.config; minor formatting cleanups
15 years ago
Dave Smith
496851cefd
Add support for installing to a target directory as alternative to Erlang base dir
15 years ago
Tuncer Ayaz
00c855d030
Update comment for filelib:ensure_dir/1 wrapper.
The wrapper can now be removed as I've fixed the problem in R13B04.
15 years ago
Dave Smith
b0dfd233ae
Make sure to add ebin/ to current path when compiling doterl files; found by @sj_mackenzie
15 years ago
Dave Smith
6714d47efb
Deal properly with env vars that have multiple = in the value
15 years ago
Dave Smith
1f6d861aba
Overhaul env expansion so that rebar fully expands env refs prior to invoking the shell script. Also now using DRV_* env vars for compilation/linking of files found in c_src; this frees up "normal" CFLAGS/LDFLAGS for usage in sub build scripts.
15 years ago
Dave Smith
51133313a6
Updating template defs to use "template" in lieu of "file" directive
15 years ago
Dave Smith
7bfa2405db
Merging w/ http://bitbucket.org/bryan/rebar
15 years ago
Bryan Fink
f6feac493d
provide separate 'file' and 'template' directives, instead of one 'file' directive with a boolean Render flag
15 years ago
Dave Smith
0f7b47ce7b
Merging w/ mainline
15 years ago
Dave Smith
d486dff6e8
Merging with OJ's branch
15 years ago
Dave Smith
96c1ceba60
Break out arch string function; update ERLANG_TARGET to include bitness of the Erlang target
15 years ago
Dave Smith
a0732e9e78
Make sure to cover all edge cases when parsing module names
15 years ago
Dave Smith
1def586e39
Merging w/ mainline
15 years ago
Tuncer Ayaz
fa4b2ee701
Add emacs and vim file local variables
15 years ago
Dave Smith
22d21f63d0
Append wordsize to the architecture string
15 years ago
Ryan Tilder
f502bb09dd
I'm a moron. Make it a string.
15 years ago
Dave Smith
268405d0dc
Adding new vars for scripts to determine architecture (32/64 bit) and target platform of Erlang VM; courtesy of rtilder
15 years ago
Dave Smith
b787f195b8
Add vim line; courtesy of rtilder
15 years ago
theiw
788bd3df72
Provide package support for eunit; build_plt now includes listed applications; begin including -spec annotations
15 years ago
Dave Smith
30a3816c86
Use init:stop/1 over halt/1 to ensure all I/O gets a chance to flush
15 years ago
Bryan Fink
60629e8516
add chmod template directive for changing file file permission
usage: {chmod, Mode, File}
where: Mode is an integer, as specified by the 'mode' field of the file_info record
(see docs for file:write_file_info/2)
15 years ago
Bryan Fink
4c2dade0f4
add Render flag to 'file' template directive
{file,In,Out,true} = render with mustache
{file,In,Out,false} = do not render with mustache (leave as-is)
old-form {file,In,Out} is equivalent to {file,In,Out,true}
15 years ago
Bryan Fink
4e01b32d5d
look for templates in local directory as well
15 years ago
OJ Reeves
71c974e341
Added support for the speficiation of test suite names
eg. rebar eunit -- runs all tests in all modules
rebar eunit suite=foo -- only runs tests in foo.erl/foo_tests.erl
Added an entry to .hgignore to avoid .swp files (created by VIM).
15 years ago
OJ Reeves
6c359a08cd
Added 3 new templates:
- simplefsm - Basic shell of a gen_fsm module
- simplesrv - Basic shell of a gen_server module
- simplemod - Basic shell of a module along with an associated test module.
15 years ago
Tuncer Ayaz
2734f2bcc2
Do not print dynamic escript name in usage info
15 years ago
Dave Smith
bd510dea20
Tweaking order of defaults so that -shared is default across platforms unless explicitly overridden
15 years ago
Dave Smith
f333bc2a92
Removing useless debug message and extraneous newline
15 years ago
Dave Smith
b9e78d6722
Add support for passing addt'l list of sources to erlc_compiler
15 years ago
Dave Smith
47e70f308a
Add support for forcibly overwriting output files; courtesy of OJ Reeves
15 years ago
Dave Smith
12420ee43c
Fix typo; courtesy of OJ Reeves
15 years ago
Dave Smith
7bcbe026d4
Merging support from asonge for custom_tags_dir
15 years ago
Dave Smith
7cf7481a68
Fixing issue #3 ; make sure to properly escape simplenode related files. Patch provided by cstar..thanks!
15 years ago
Dave Smith
1582f2e243
Tweak support for controlling so_name
15 years ago
Alex Songe
73ee6e442b
Added support for custom_tags_dir compile option to rebar_erlydtl_compiler
15 years ago
Tuncer Ayaz
d32bd6d4a1
Added appid= to bash-completion
15 years ago
Dave Smith
96e9a2a521
Look for dirs named erts-vsn when setting up spec for copying files
15 years ago
Dave Smith
66fa90ce6c
Try previous commit again; make sure include/ directory exists
15 years ago
Dave Smith
dce1673fdb
Make sure include/ directory exists
15 years ago