summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* deduplicate default test set generated by `rebar3 eunit`alisdair sullivan2016-01-171-5/+9
| | | | | this ONLY attempts to deduplicate test sets that are generated by rebar in the absence of any user specified tests
* merge overlay entries into a single {overlay, list()} for relxTristan Sloughter2016-01-101-1/+23
|
* install project app plugins after discovering them not beforeTristan Sloughter2016-01-101-2/+34
|
* Merge pull request #1006 from tsloughter/masterFred Hebert2016-01-091-5/+35
|\ | | | | only apply default and prod profile to dependencies
| * only apply default and prod profile to dependenciesTristan Sloughter2016-01-091-5/+35
| |
* | fix dirs robocopy and canonical paths in windowsFred Hebert2016-01-071-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | - robocopying a directory into another directory recursively expects the directory name to be properly mapped onto the destination, otherwise all the files are copied into the given path. This patches things so a directory-to-directory robocopy works as expected in a linux mindset so tests pass - the test for canonical paths didn't expect a windows environment at all; the test (and library) is modified to be consistent in that environment: always with a native format and with proper support of drive letters.
* | Avoid changing directories in test suiteFred Hebert2016-01-071-6/+3
|/
* Merge pull request #966 from talentdeficit/ct_root_suitesFred Hebert2016-01-051-1/+94
|\ | | | | allow ct suites to be specified at root of project (or root of app)
| * add test for foo_SUITE_data filesalisdair sullivan2015-12-201-2/+8
| |
| * put `extra' ct test suites in `extras/apps/APPNAME' rather than `extras'alisdair sullivan2015-12-201-1/+44
| | | | | | | | this allows repeated test suite names across apps without conflicts
| * allow ct suites to be specified at the root of a project (or root of app)alisdair sullivan2015-12-201-1/+45
| | | | | | | | | | | | | | | | previously rebar3 dropped suites declared at the root of the project (via `--suite=whatever_SUITE' probably) and warned. this was because the compiler would recursively copy and compile everything in the directory indicated by the test suite. this changes the copy mechanism to only copy erl source files and directories that end with `_SUITE_data' into the `extras' dir in `_build'
* | convert ~> versions to highest matchingTristan Sloughter2015-12-261-3/+22
| |
* | Merge pull request #987 from ferd/plugin-templatesTristan Sloughter2015-12-2111-1/+146
|\ \ | |/ |/| Plugin templates
| * Plugin templates enabledFred Hebert2015-12-1911-1/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets a plugin define templates to be loaded: $ rebar3 new ... proper (plugin): A basic PropEr suite for an OTP application ... $ rebar3 new help proper proper: plugin template (...) Description: A basic PropEr suite for an OTP application Variables: name="suite" (...) ... → rebar3 new proper fakesuite ===> Writing test/prop_fakesuite.erl In this case, proper is a fake template file I've put by hand in _build/default/plugins/rebar3_proper/priv/<somename>/, meaning it will only work as far as it's called from the project's root. The priority order of plugins is now .config > plugin > built-in, such that someone could ensure plugins do not crush their own private templates, but also that custom or plugin templates do overtake built-in ones. It used to be Built-in > .config only. Templates are searched for recursively in the priv/ directory of plugins.
* | support temporary cdn change with HEX_CDN os varTristan Sloughter2015-12-192-6/+6
|/
* Merge pull request #988 from ferd/schutm-wrong-pathsTristan Sloughter2015-12-191-3/+40
|\ | | | | Fix wrong relative path resolution
| * Add tests for base_dir reconfigurationFred Hebert2015-12-191-3/+40
| | | | | | | | Tests both absolutes and relative paths.
* | A bad template index does not crash; shows warningFred Hebert2015-12-188-0/+145
|/ | | | | | | | This should fix #955 The test is implicit as a bad index previously silently crashed rebar3. By adding the bad index to the `new` suite's files, we can show that things keep running.
* Merge pull request #967 from talentdeficit/mib_include_fixFred Hebert2015-12-081-4/+4
|\ | | | | symlink mib hrl output in apps `include' directories
| * remove mib header file in `priv/mibs/include'alisdair sullivan2015-12-081-6/+0
| |
| * symlink mib hrl output in apps `include' directoriesalisdair sullivan2015-12-061-0/+6
| | | | | | | | this restores compatibility with rebar2 and erlang.mk
* | Actually fix tuple merging.Fred Hebert2015-12-061-0/+7
| | | | | | | | Full rewrite, code should be understandable now.
* | Merge branch 'tup_umerge' of https://github.com/tsloughter/rebar3 into ↵Fred Hebert2015-12-061-5/+64
|\ \ | |/ |/| | | tsloughter-tup_umerge
| * add tests for setting per-profile sys_config variables for relxTristan Sloughter2015-12-061-5/+64
| |
* | Add test cases for tuple deduplicationFred Hebert2015-12-061-2/+69
|/ | | | (the tests fail)
* Added tests and fixed a bugPhil Toland2015-12-011-4/+10
|
* auto-update the registry if a pkg isn't found, fail if it still isn't foundTristan Sloughter2015-11-291-3/+13
|
* Handle force flags in leading positionFred Hebert2015-11-191-1/+38
| | | | The checking of flags and the parsing of arguments is separated up.
* error on ct/eunit argument errors instead of warningalisdair sullivan2015-11-152-11/+132
|
* calculate coverage info as late as possible in ct provider executionalisdair sullivan2015-11-051-2/+36
|
* Merge pull request #905 from talentdeficit/cover_fixesTristan Sloughter2015-11-041-6/+19
|\ | | | | fixes for cover under new compiler/eunit/ct
| * fixes for cover under new compiler/eunit/ctalisdair sullivan2015-11-011-6/+19
| | | | | | | | | | | | * only try to cover compile directories that actually exist * recover from failures where source files don't contain required attributes for cover compilation and print warning
* | reenable support for most command line options and rename `ct_tests` to ↵alisdair sullivan2015-11-011-3/+400
| | | | | | | | `ct_opts`
* | refactor `rebar_prv_common_test`alisdair sullivan2015-11-011-167/+144
| | | | | | | | | | | | | | | | * remove partial support for ct `test_spec` until it can be done properly and warn if `test_spec` is present in test opts * use new compiler functionality to reduce complexity of provider * reduce command line options available to those that can be supported properly
* | Merge pull request #900 from fishcakez/dialyzer-missingTristan Sloughter2015-11-011-2/+32
|\ \ | |/ |/| Rebuild PLT when beams no longer exist
| * Rebuild PLT when beams no longer existJames Fish2015-10-311-2/+32
| |
* | Merge pull request #895 from talentdeficit/delay_eunit_validationFred Hebert2015-11-011-6/+12
|\ \ | |/ |/| delay validation of eunit tests until just before running
| * delay validation of eunit tests until just before runningalisdair sullivan2015-10-301-6/+12
| |
* | dedup `src_dirs` and `extra_src_dirs` on readalisdair sullivan2015-10-302-12/+12
|/
* refactor `rebar_erlc_compiler`alisdair sullivan2015-10-267-94/+679
| | | | | | | | | | | | | | | | | | | * 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
* Revert "add an export to allow specifing arbitrary extra erl files to be ↵alisdair sullivan2015-10-261-30/+1
| | | | | | compiled" This reverts commit 9d82215296205d2d30c152c7d7c6fcb8e4a92443.
* Support proper paths in non-erl first filesFred Hebert2015-10-121-2/+51
| | | | | This passes the directory to the option to ensure it works with more than configs at the root of the project.
* Tests for warningsFred Hebert2015-10-051-2/+32
|
* shiny and new test suite for eunit provideralisdair sullivan2015-09-296-518/+422
|
* fix test names in `eunit_test_SUITE`alisdair sullivan2015-09-291-46/+46
|
* inject `eunit_compile_opts`, `eunit_first_files` and `TEST` macroalisdair sullivan2015-09-292-5/+78
| | | | prior to running compile and compile prehooks
* add `application' flag and additional testsalisdair sullivan2015-09-291-9/+74
|
* add `error_on_warning' option to eunit provideralisdair sullivan2015-09-291-24/+78
|
* reworked eunit provider to allow access to full range of eunit testsalisdair sullivan2015-09-291-96/+38
|
* add test to not upgrade unrelated transitive dep during upgradeTristan Sloughter2015-09-261-1/+21
|