Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | eunit: remove application modules from the modules eligible to test | alisdair sullivan | 2016-12-23 | 1 | -4/+5 |
| | | | | | application modules will be added to the eunit test set automatically, no need to consider them for inclusion in the test set separately | ||||
* | don't filter eunit test modules based on file extension | alisdair sullivan | 2016-12-22 | 1 | -2/+2 |
| | | | | | | stops the eunit provider from filtering out test modules based on the file extension. previously, it was hardcoded to expect all test files ended in `.erl`. this change allows for endings like `.lfe` and `.beam` | ||||
* | Fix regex match for ignored file | Fred Hebert | 2016-12-09 | 1 | -1/+1 |
| | | | | | | | The regex mistakenly matched too many files (any character followed by an underscore) rather than only files starting in '._' This properly escapes the expressions to work in all cases. | ||||
* | Restrict regexp to match on files starting with '._' | Roberto Aloi | 2016-12-06 | 1 | -1/+1 |
| | |||||
* | Add 'recursive' option | Siri Hansen | 2016-11-21 | 1 | -1/+1 |
| | | | | | | | | | | | | The option {recursive,boolean()} can now be set pr directory in 'src_dirs' and 'extra_src_dirs', and on top level in the new 'erlc_compiler' option. Example config: {erlc_compiler,[{recursive,false}]}. {src_dirs,[{"src",[{recursive,true}]}]}. This will cause recursive compilation within the "src" directory, but not in any other directoires. | ||||
* | Fix rebar3 dialyzer warnings | Fred Hebert | 2016-11-19 | 1 | -10/+4 |
| | | | | Some tricky changes in there but should be okay | ||||
* | allow using an alternate regex to locate test modules during eunit runs | alisdair sullivan | 2016-09-20 | 1 | -7/+12 |
| | | | | | | | | {`eunit_test_regex`, Regex}` will use the supplied `Regex` instead of the default to locate tests in test dirs. note this matches only the filename, not the path. the regex is applied to all test dirs, recursively fixes #1331 | ||||
* | Add sname, name, setcookie option in eunit, ct | soranoba | 2016-04-07 | 1 | -8/+14 |
| | |||||
* | supported dist_node in ct and eunit | soranoba | 2016-04-07 | 1 | -0/+5 |
| | |||||
* | move definition of 'EUNIT' macro to eunit provider | alisdair sullivan | 2016-03-03 | 1 | -1/+19 |
| | | | | add definition of 'COMMON_TEST' macro to eunit provider | ||||
* | Add short-options to the eunit provider. | Alexander Færøy | 2016-02-28 | 1 | -4/+4 |
| | | | | This patch adds support for short options in the eunit provider. | ||||
* | in providers that don't run per app run all available hooks | Tristan Sloughter | 2016-02-28 | 1 | -3/+3 |
| | |||||
* | deduplicate default test set generated by `rebar3 eunit` | alisdair sullivan | 2016-01-17 | 1 | -10/+39 |
| | | | | | this ONLY attempts to deduplicate test sets that are generated by rebar in the absence of any user specified tests | ||||
* | Merge pull request #1018 from talentdeficit/cover_what_are_you_doooooing | Fred Hebert | 2016-01-16 | 1 | -4/+3 |
|\ | | | | | change detection of valid modules for `eunit` | ||||
| * | change detection of valid modules for `eunit` | alisdair sullivan | 2016-01-13 | 1 | -4/+3 |
| | | | | | | | | | | | | | | `beam_lib:chunks(..)` needs a path to object code which, frustratingly, `code:which/1` won't return for cover compiled modules. instead just assume that if `code:which/1` doesn't return `non_existing` a module is something we can run tests on | ||||
* | | Merge pull request #1021 from tsloughter/master | Tristan Sloughter | 2016-01-15 | 1 | -1/+2 |
|\ \ | |/ |/| | convert 'app' to 'application' in eunit_opts to match cmdline args | ||||
| * | convert 'app' to 'application' in eunit_opts to match cmdline args | Tristan Sloughter | 2016-01-15 | 1 | -1/+2 |
| | | |||||
* | | when using the `--file' argument to `eunit' paths were being converted | alisdair sullivan | 2016-01-12 | 1 | -9/+20 |
|/ | | | | into directory test arguments | ||||
* | Default to no eunit formatter if verbose specified | Julian Squires | 2015-12-01 | 1 | -1/+2 |
| | | | | The previous default meant that verbose output would not be emitted. | ||||
* | fetch eunit_formatters config not from the command args but from the config | Tristan Sloughter | 2015-11-30 | 1 | -1/+1 |
| | |||||
* | error on ct/eunit argument errors instead of warning | alisdair sullivan | 2015-11-15 | 1 | -95/+115 |
| | |||||
* | warn on incorrectly specified test options in `rebar.config` | alisdair sullivan | 2015-11-14 | 1 | -8/+26 |
| | | | | | | | when `ct_opts`, `eunit_tests`, `eunit_first_files`, `ct_first_files`, `erl_first_files`, `eunit_compile_opts`, `ct_compile_opts` and `erl_opts` have values that are single non-list terms warn and try wrapping them in a list when processing them in the `eunit` and `ct` providers | ||||
* | add space before end so eyes don't bleed | Tristan Sloughter | 2015-11-13 | 1 | -1/+1 |
| | |||||
* | include Sean Cribbs eunit formatter by default | Tristan Sloughter | 2015-11-13 | 1 | -3/+14 |
| | |||||
* | add an option to soft purge rather than purge old code | alisdair sullivan | 2015-11-01 | 1 | -1/+1 |
| | | | | | at the cost of some SASL warnings this prevents rebar3 from terminating processes when reloading their code before running tests | ||||
* | Merge pull request #895 from talentdeficit/delay_eunit_validation | Fred Hebert | 2015-11-01 | 1 | -23/+24 |
|\ | | | | | delay validation of eunit tests until just before running | ||||
| * | delay validation of eunit tests until just before running | alisdair sullivan | 2015-10-30 | 1 | -23/+24 |
| | | |||||
* | | move test profile bootstrap into core | alisdair sullivan | 2015-10-30 | 1 | -20/+1 |
|/ | |||||
* | remove unnecessary filtering of checkapps from project apps in `rebar_prv_eunit` | alisdair sullivan | 2015-10-26 | 1 | -16/+4 |
| | |||||
* | restore debug calls to `rebar_erlc_compiler` and `rebar_prv_eunit` | alisdair sullivan | 2015-10-26 | 1 | -2/+2 |
| | |||||
* | refactor `rebar_erlc_compiler` | alisdair sullivan | 2015-10-26 | 1 | -65/+102 |
| | | | | | | | | | | | | | | | | | | | * modify compiler interface to work on either application objects or directories containing source files * compile all sources in `src_dirs` to the application `ebin` dir and all sources in `extra_src_dirs` to a directory mirroring it's position in the app's `_build` directory. for example, `apps/foo/more` would compile to `_build/default/lib/foo/more` for `extra_src_dirs` in the root of a project with multiple applications (so orphan directories that don't "belong" to an application) compile to `_build/default/extras/more` * copy directories specified in `extra_src_dirs` into the `_build` directory so tools like `ct` and `xref` that expect source to be in a particular location still work * clean compiled artifacts from all `extra_src_dirs` * alter `eunit`, `ct` and `cover` to work with the new directory structure * billions of new tests | ||||
* | fix failing cover test | alisdair sullivan | 2015-09-29 | 1 | -6/+27 |
| | |||||
* | shiny and new test suite for eunit provider | alisdair sullivan | 2015-09-29 | 1 | -107/+124 |
| | |||||
* | inject `eunit_compile_opts`, `eunit_first_files` and `TEST` macro | alisdair sullivan | 2015-09-29 | 1 | -11/+36 |
| | | | | prior to running compile and compile prehooks | ||||
* | Revert "drop `eunit_first_files' and `eunit_compile_opts'. that's what" | alisdair sullivan | 2015-09-29 | 1 | -2/+23 |
| | | | | This reverts commit dde60d491f64e8545c586d07015a466eb8e6e126. | ||||
* | drop `eunit_first_files' and `eunit_compile_opts'. that's what | alisdair sullivan | 2015-09-29 | 1 | -23/+2 |
| | | | | profiles are for | ||||
* | add `application' flag and additional tests | alisdair sullivan | 2015-09-29 | 1 | -8/+9 |
| | |||||
* | add `error_on_warning' option to eunit provider | alisdair sullivan | 2015-09-29 | 1 | -22/+51 |
| | |||||
* | reworked eunit provider to allow access to full range of eunit tests | alisdair sullivan | 2015-09-29 | 1 | -92/+97 |
| | |||||
* | improve `--help' documentation for eunit provider | alisdair sullivan | 2015-08-16 | 1 | -5/+5 |
| | |||||
* | add support for `rebar3 eunit --file=...' | alisdair sullivan | 2015-08-15 | 1 | -3/+29 |
| | |||||
* | Revert "don't add `{extra_src_dirs, ["test"]}` to `test` profile" | alisdair sullivan | 2015-07-12 | 1 | -42/+20 |
| | | | | This reverts commit b06a6ecaddfc6fea16f3c24881fd41ac731ffa9e. | ||||
* | Merge pull request #487 from ferd/fix-provider-bareness | Tristan Sloughter | 2015-05-30 | 1 | -1/+1 |
|\ | | | | | fix bareness issues | ||||
| * | fix bareness issues | Fred Hebert | 2015-05-31 | 1 | -1/+1 |
| | | | | | | | | | | | | - 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. | ||||
* | | move handling of undefined app state to function | Tristan Sloughter | 2015-05-22 | 1 | -8/+1 |
|/ | |||||
* | don't add `{extra_src_dirs, ["test"]}` to `test` profile | alisdair sullivan | 2015-05-20 | 1 | -20/+49 |
| | | | | | | 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 | ||||
* | purge loaded code when it conflicts with project apps in tests | Tristan Sloughter | 2015-05-18 | 1 | -2/+3 |
| | |||||
* | generalize the "test" special dir into an {extra_src_dirs, [...]} option | alisdair sullivan | 2015-05-16 | 1 | -41/+20 |
| | | | | | | 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 | ||||
* | real bootstrapping | Tristan Sloughter | 2015-04-22 | 1 | -1/+1 |
| | |||||
* | track and cleanup code paths for different contexts | Tristan Sloughter | 2015-04-21 | 1 | -0/+4 |
| |