summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Warnings for Deletions and friendly errorsFred Hebert2015-02-122-10/+29
| | | | | | | | | Apps that are no longer used are not automatically deleted, but we tell users it can be done. This is safer while we're not sure of the correctness of these messages. Error messages are added for transient dependencies and dependencies not found.
* Support multiple app upgrade & lock testsFred Hebert2015-02-112-5/+50
| | | | | | - Many apps is supported through and through - Not mentioning any app upgrades all apps - Locks are refreshed on disk and tested as such after an upgrade
* Fix testcases, add multi-app upgrade supportFred Hebert2015-02-112-12/+60
| | | | | | | | todo: - relock stuff - default to all apps needing upgrade - more tests? - pkgs?
* More progress on upgradesFred Hebert2015-02-111-4/+9
| | | | | | Only the most complex case is failing, where cross-dependencies would need to be refetched as an update clears an app of its dependencies and a different subtree should override it.
* Partial work + Failing testsFred Hebert2015-02-113-80/+261
| | | | | The problem with the current effort is handling of transitive dependency upgrades and possible values.
* WIPFred Hebert2015-02-113-2/+196
| | | | | | Test that all the correct locks are set for an upgrade run. Now to actually re-run the install deps and prove it works
* Merge pull request #138 from talentdeficit/args_to_tasksFred Hebert2015-02-111-0/+120
|\ | | | | factor out task/args parsing from `do` for use in other meta commands
| * factor out task/args parsing from `do` for use in other metaalisdair sullivan2015-02-081-0/+120
| | | | | | | | commands
* | Add initial dialyzer testsJames Fish2015-02-081-0/+158
| |
* | Change mock_pkg_resource to create ebin directoryKelly McLaughlin2015-02-061-1/+1
| | | | | | | | | | | | | | | | | | Change mock_pkg_resource to use rebar_test_utils:create_empty_app so that an ebin directory is created which is a good expectation for a package. Also revert the check in rebar_fetch:download_source to check for an ebin directory before adding it to the code path for package installs. If a package does not have an ebin directory it is probably a good for an exception to be thrown.
* | Add xref provider for cross reference analysisKelly McLaughlin2015-02-051-0/+190
|/ | | | | | | | | | | * Add a provider for the xref tool for running cross reference analysis on a project. Most of the code has been ported directly from the rebar2 rebar_xref module with some modification and cleanup to support testing. * Port over the eunit test suite from rebar2, but convert it to common_test. The testing is the same, but now the erlang term output is examined to determine if the test run is successful instead of scanning the console output for the expected strings.
* fix find_apps when searching for invalid appsTristan Sloughter2015-02-021-1/+2
|
* add hook SUITE testsTristan Sloughter2015-01-312-0/+57
|
* fix `reset_dir` test suite for r15xalisdair sullivan2015-01-181-3/+3
| | | swap `file:list_dir` for `file:list_dir_all` due to nonexistence of latter prior to r16x
* add functions `system_tmpdir/0,1` and `reset_dir/1`alisdair sullivan2015-01-151-0/+86
| | | | (in `rebar_file_utils`)
* test for eunit provideralisdair sullivan2015-01-062-4/+64
|
* MORE TESTSFred Hebert2014-12-291-2/+23
|
* Adding tests for checkouts being found & compiledFred Hebert2014-12-292-5/+30
|
* Add release-structured compiling testsFred Hebert2014-12-242-5/+26
|
* Add support for custom templates in subdirectoriesFred Hebert2014-12-239-0/+203
| | | | - Includes tests for templates and their application
* Tests and fixes for namespacesFred Hebert2014-12-211-0/+93
|
* Fix up programmatic interface to rebar3Fred Hebert2014-12-212-2/+2
| | | | Now supports arbitrary commands
* rewrite profilesTristan Sloughter2014-12-161-2/+1
|
* Adding pkg deps tests and refactoringsFred Hebert2014-12-164-28/+241
| | | | | | | | | | | | | | | | | | | - Adding tests for package deps - Adding conflict/override warnings for package deps - Adding cycle detection for packages - Adding cycle detection for mixed packages+source - Fixing internal dependency format of package resources when converted to rebar_app_info - normalizing level-order prioritization to be based on lexicographical sort of app names rather than traversal order (which is undefined for package deps) - Fixing tests for source deps for deep cycle detection - Fixing bugs with source deps - Relaxed version format checks for test utils A lot of fixes are combined in there because I didn't want to commit non-passing code, and many bugs were found when adding the second batch of tests as part of the original effort.
* Print warning when deps are being skipped.Fred Hebert2014-12-071-13/+64
| | | | | The case in mind here is due to conflicts, and tests have been added for this.
* Handle cycle errors in providerFred Hebert2014-12-061-2/+2
|
* Return cycles in deps solverFred Hebert2014-12-061-2/+2
|
* Partial fix to circular deps (#40)Fred Hebert2014-12-064-32/+59
| | | | | | | | | - Adding tests - fixing use of set fetching to find repeated deps and prevent infinite loops On a circular loop rebar3 now fails with `{error, no_sort}`, which is uncaught and should be handled to consider the issue fully fixed.
* Initial tests for dependency resolvingFred Hebert2014-12-044-85/+358
| | | | | | | | | | | | | - Reworked the helpers for existing suites and expanded them - Created a mock git resource module to test for its dependency fetching - Added a test suite for dependency resolving with first checks for common cases (https://gist.github.com/ferd/197cc5c0b85aae370436) Left to do would include: - Verify warnings - Verify failures - Verify dependency updates resolving
* start of breaking out test code for ease of checksTristan Sloughter2014-11-291-9/+12
|
* pass command as arg to run_aux for nowTristan Sloughter2014-10-171-1/+1
|
* fix ct test for new command handlingTristan Sloughter2014-09-171-1/+1
|
* update common testsTristan Sloughter2014-09-171-2/+2
|
* change name of suiteTristan Sloughter2014-09-011-1/+1
|
* only build invalid (not built) source deps and project appsTristan Sloughter2014-09-011-1/+1
|
* add first testTristan Sloughter2014-09-011-0/+113
|
* remove more code that can be brought back later if neededTristan Sloughter2014-08-3017-1788/+0
|
* Follow-up typo fixes for #327Tuncer Ayaz2014-07-171-1/+1
|
* rebar_utils:otp_release/0: handle vsn like x.y.z**Tuncer Ayaz2014-07-171-6/+10
| | | | | | | | | As mentioned in the OTP documentation, licensed customers may use patched OTP installations where the otp_patch_apply tool adds a '**' suffix as a flag saying the system consists of application versions from multiple OTP versions. When we get such a version string, we drop the suffix, as we cannot obtain relevant information from it as far as tooling is concerned.
* Adapt arch string to versioning scheme changes (>= 17.x)Tuncer Ayaz2014-07-171-0/+43
|
* Add qualified name tests specification (see #118)Sergey Savenko2014-05-291-0/+40
| | | | | | | | | Augment 'tests' option of 'rebar eunit' command with ability to specify tests to run using module-qualified names. This change also forced me to change the way modules for coverage and for testing itself are selected - module-qualified tests specifications are now taken into consideration. Extend tests to cover new functionality. Update dialyzer_reference accordingly.
* file_utils: properly report errors (fix #95)Tuncer Ayaz2014-04-111-2/+2
| | | | While at it, improve the error message printed by rebar_utils:sh/2.
* Add partial support for Erlang/OTP 17Joseph Wayne Norton2014-03-291-0/+23
| | | | | | | Allow rebar to compile applications using Erlang/OTP 17 and older versions. This patch only provides partial support since the rebar tool itself must be compiled using an Erlang/OTP version that is older than 17.
* Merge branch 'xref_20130130' of git://github.com/spilgames/rebar into spg-xrefDave Smith2013-06-171-0/+203
|\ | | | | | | | | Conflicts: src/rebar_xref.erl
| * Add standard xref checks and improved suppressionDennis Docter2013-01-301-0/+203
| | | | | | | | | | | | | | | | | | | | | | | | * Allow the following predefined analyses : undefined_function_calls, undefined_functions, locals_not_used, exports_not_used, deprecated_function_calls, deprecated_functions * Trap some possible errors in case module information is not available * ignore_xref works on all checks and can take {M,F,A} tuples. (Automatic behaviour export suppression still only works on exports_not_used)
* | Merge pull request #53 from oferrigni/unit_test_file_handling_fixDave Smith2013-06-161-3/+11
|\ \ | | | | | | Fix file handling on windows for tests
| * | Fix file handling on windows for testsOliver Ferrigni2013-01-141-3/+11
| |/ | | | | | | | | | | | | Running tests on windows creates false positive due to setup failures not executing all tests. Checking for tmp_dir was failing on subsequent runs. Added cases to tmp_dir creation to delete preexisting tmp_dirs in .eunit directory.
* | Sync test/upgrade_project/rel/files with priv/templatesTuncer Ayaz2013-06-125-66/+210
| |
* | Use "pwd -P" to get the current physical path.olgeni2013-06-102-2/+2
|/ | | | | | | | | | | | | | It is a portable version of the realpath(1) utility that you can find on Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue 6, IEEE Std 1003.1). Without the -P flag, pwd(1) might return different values when the current path contains one or more symlinks, depending on how you got into the current directory. In simplenode.runner, this may cause PIPE_DIR to have different values on each use, which will make it impossible to connect to the running node unless you guess the correct path yourself.
* eunit: analyze coverage only for cover compiled modulesShunichi Shinohara2012-09-131-17/+27
| | | | This change fixes #310.