alisdair sullivan
d6a011981e
add support for `rebar3 eunit --file=...'
hace 9 años
alisdair sullivan
360834dd40
Revert "don't add `{extra_src_dirs, ["test"]}` to `test` profile"
This reverts commit b06a6ecadd
.
hace 9 años
Fred Hebert
3ed0c5feff
fix bareness issues
- Crashes in providers lib when no providers in a namespace are bare
- Making sure bareness matches semantics; i.e. a bare provider is
visible, a non-bare provider is hidden.
hace 10 años
Tristan Sloughter
8a50331898
move handling of undefined app state to function
hace 10 años
alisdair sullivan
b06a6ecadd
don't add `{extra_src_dirs, ["test"]}` to `test` profile
adding it results in ct test suites being compiled before they're
properly copied so changes made to suites between runs are not
reflected if a run fails before test dirs are copied
hace 10 años
Tristan Sloughter
529025b6fd
purge loaded code when it conflicts with project apps in tests
hace 10 años
alisdair sullivan
c534deafc5
generalize the "test" special dir into an {extra_src_dirs, [...]} option
like `src_dirs`, `extra_src_dirs` are directories to be copied to
the `_build` dir and compiled. unlike `src_dirs` they are not added
to the .app specification
hace 10 años
Tristan Sloughter
4374999d95
real bootstrapping
hace 10 años
Tristan Sloughter
a3d4cc1259
track and cleanup code paths for different contexts
hace 10 años
Tristan Sloughter
a447067888
rm old beams, make erlcinfo graph per app isntad of global to project
hace 10 años
Tristan Sloughter
019152e1d5
fix eunit comment
hace 10 años
Tristan Sloughter
4e64e36857
fixes from bad rebase against master
hace 10 años
Tristan Sloughter
a55c94cc9c
support provider hooks on ct and eunit
hace 10 años
Fred Hebert
043a2f5453
Provide descriptions for all tasks
hace 10 años
alisdair sullivan
efb859f15a
split function setting test set for clarity
hace 10 años
alisdair sullivan
044b6580e7
filter checkapps via `rebar_app_info:is_checkout` rather than
matching directory paths
hace 10 años
alisdair sullivan
c5bc19b021
add `--app=...` and `--suite=...` options for the eunit provider to
run subsets of test suites
hace 10 años
Fred Hebert
92245a138b
use PRV_ERROR for formattable errors
Also expose it in rebar_api
hace 10 años
alisdair sullivan
b0300f1b2f
symlink extra test dirs and compile from there instead of from
root project
hace 10 años
alisdair sullivan
ab84fc89cc
compile source from the symlinked directories under `_build` to
get correct compile paths included in module info
hace 10 años
Tristan Sloughter
ea82d0561d
update all examples in providers to use rebar3
hace 10 años
alisdair sullivan
90bff8f8d4
preserve state when compiling directories with a `rebar.config`
hace 10 años
alisdair sullivan
ad8982b931
generate cover data (via the `{cover_enabled, true}` option in
`rebar.config` or via the `-c\--cover` flag given to the appropriate
task) from the `eunit` and `ct` tasks and add a `cover` task to
write coverage analysis to disk
hace 10 años
alisdair sullivan
c7c00bccfd
modify `ct` and `eunit` to work with isolated `ebin` dirs
hace 10 años
Tristan Sloughter
ae9c83fb4b
copy project apps to deps output dir for compilation
hace 10 años
Tristan Sloughter
0533f9dddc
don't lose erl_opts when compiling for tests
hace 10 años
alisdair sullivan
00e03d70ef
use new `rebar_file_utils` functions in `eunit` and `ct` providers
hace 10 años
alisdair sullivan
10298a21b6
change more instances of mistyped `erl_first_modules` to
`erl_first_files`
fixes #99
hace 10 años
Tristan Sloughter
407362c074
replace single profile atom in providers with list of profiles
hace 10 años
alisdair sullivan
5e270a7456
when compiling `common_test` or `eunit` use the same tmp dir
from run to run
hace 10 años
alisdair sullivan
16c31097c2
add support for a bare `test` directory when using `apps` libdirs
hace 10 años
alisdair sullivan
853efc5077
exclude `_checkouts` from directories to be precompiled for
`common_test` and `eunit` providers
hace 10 años
alisdair sullivan
e5270da3d7
preserve rebar path when running `ct` and `eunit` tests
hace 10 años
alisdair sullivan
eb34901ab7
reworked eunit provider
compiles apps and eunit test files in a temporary dir (or a user
specified dir) and runs tests without leaving artifacts in the
source tree
automatically defines the 'TEST' macro if not already defined and
adds `test` to `src_dirs` to allow for eunit test files outside `src`
hace 10 años
Tristan Sloughter
8e5c916cb6
move dir functions from utils to new module rebar_dir
hace 10 años
Tristan Sloughter
79b1f23240
move back to using format_error/1
hace 10 años
Tristan Sloughter
1ff904f39a
handle throw by relx
hace 10 años
Tristan Sloughter
fe6827706f
add eunit task, still work to be done
hace 10 años