Christopher J. Brody [Tue, 18 Sep 2018 02:12:15 +0000 (22:12 -0400)]
GH-693 Update version & RELEASENOTES.md for release 8.1.0
Chris Brody [Tue, 18 Sep 2018 01:36:47 +0000 (21:36 -0400)]
CB-14166 distinguish npm.cmd and npm.exe in win32 (#697)
to check if escape is necessary
(workaround solution in 8.1.x only)
Christopher J. Brody [Thu, 13 Sep 2018 14:37:20 +0000 (10:37 -0400)]
Update cordova-windows pattern to ~6.0.0 (GH-691)
Christopher J. Brody [Fri, 14 Sep 2018 03:24:34 +0000 (23:24 -0400)]
src/plugman/uninstall.js workaround for Node.js 4
Christopher J. Brody [Thu, 13 Sep 2018 21:13:51 +0000 (17:13 -0400)]
src/hooks/HooksRunner.js workarounds for Node.js 4
Christopher J. Brody [Fri, 14 Sep 2018 05:14:54 +0000 (01:14 -0400)]
EXTRA pkgJson-restore.spec.js workaround for Node.js 4
Christopher J. Brody [Fri, 14 Sep 2018 02:04:28 +0000 (22:04 -0400)]
pkgJson.spec.js workarounds for Node.js 4
Christopher J. Brody [Fri, 14 Sep 2018 01:32:29 +0000 (21:32 -0400)]
pkgJson-restore.spec.js workarounds for Node.js 4
Christopher J. Brody [Thu, 13 Sep 2018 21:20:47 +0000 (17:20 -0400)]
spec/cordova/plugin/remove.spec.js workaround for Node.js 4
Christopher J. Brody [Thu, 13 Sep 2018 21:03:36 +0000 (17:03 -0400)]
spec/helpers.js workaround for deprecated Node.js 4
Christopher J. Brody [Thu, 13 Sep 2018 20:06:08 +0000 (16:06 -0400)]
HooksRunner test fixes for deprecated Node.js 4 (8.1.x)
Christopher J. Brody [Thu, 13 Sep 2018 21:00:48 +0000 (17:00 -0400)]
Downgrade to fs-extra@4 & move to devDependencies
- fs-extra@4 needed to support deprecated Node.js version 4
- fs-extra currently not used outside of spec & integration-tests
Christopher J. Brody [Thu, 13 Sep 2018 20:52:06 +0000 (16:52 -0400)]
Partially Revert "CB-14065: Drop support for Node 4 ..."
This partially reverts commit
61395d2946a743a0a5ad5bf273a57701af15a145
but keeps Node.js 10 in AppVeyor CI and Travis CI
Christopher J. Brody [Thu, 13 Sep 2018 20:46:44 +0000 (16:46 -0400)]
Start 8.1.0-dev (minor release)
Raphael von der Grün [Wed, 22 Aug 2018 18:15:05 +0000 (20:15 +0200)]
fetch.spec: 30% shorter runtime by factoring out project setup (#640)
Raphael von der Grün [Tue, 21 Aug 2018 22:45:31 +0000 (00:45 +0200)]
Fix false alarm for long first line in HooksRunner.spec
Only warn about "too long shebang" if the file really starts with one
Raphael von der Grün [Tue, 21 Aug 2018 22:42:35 +0000 (00:42 +0200)]
Use shebang-command module to extract shebang
Covers a few more cases and reduces maintenance for us.
Raphael von der Grün [Tue, 21 Aug 2018 22:29:23 +0000 (00:29 +0200)]
Fix reading garbage shebang in HooksRunner.spec
Fixes #653
Raphael von der Grün [Tue, 21 Aug 2018 23:14:02 +0000 (01:14 +0200)]
Add test for obscure HooksRunner bug (#653)
Raphael von der Grün [Wed, 22 Aug 2018 09:27:08 +0000 (11:27 +0200)]
Fix sporadic timeout of HooksRunner test 012 (#656)
Test 012 sporadically takes slightly longer than the current default
timeout of 10s, so this increases the timeout for this test to 20s.
Related to #642
Raphael von der Grün [Wed, 22 Aug 2018 08:57:15 +0000 (10:57 +0200)]
Organize imports in HooksRunner.spec (#654)
Minor cleanup of the imports in HooksRunner.spec. No functional changes.
Raphael von der Grün [Wed, 15 Aug 2018 22:26:38 +0000 (00:26 +0200)]
Fix setDefaultTimeout for beforeAll and afterAll (#648)
Previously, the timeout defined by setDefaultTimeout did not apply for
beforeAll and afterAll blocks. This change fixes that.
The new implementation makes use of the fact that Jasmine processes
beforeAll in FIFO order and afterAll in LIFO order.
Raphael von der Grün [Wed, 15 Aug 2018 21:12:00 +0000 (23:12 +0200)]
Avoid requireNoCache in pkgJson.spec (#647)
See #644
Raphael von der Grün [Wed, 15 Aug 2018 20:06:26 +0000 (22:06 +0200)]
Cleanup pkgJson.spec (#635)
This commit does not drop any test cases. However, it fixes various bugs
in the existing expectations and often asserts stronger expectations
than the original tests.
Changes include:
- DRY code
- Improve formatting
- Reduce excessive comments
- Simplify platform list generation
- Wrap all tests in common describe to allow common setup/teardown
- Use a fresh tmpDir for every test to avoid caching issues
- Use fs-extra for setup/teardown
- FIX Wait for promise
- Properly set default timeout for the whole suite
- Don't symlink into fixtures
- Sane config file handling
- Re-enable disabled test 005 that was fixed by #628
- Do not quote props when not needed
- Do not pass array when we only have scalar
- Nicer imports
- Save test platforms/plugins as constants
Raphael von der Grün [Wed, 15 Aug 2018 19:57:01 +0000 (21:57 +0200)]
Update android platform to latest release (#646)
This will remove most noise during E2E tests.
Chris Brody [Wed, 15 Aug 2018 19:51:54 +0000 (15:51 -0400)]
CB-14148 remove nonsense "www" platform from Cordova listing (#620)
and update the tests
Co-authored-by: Christopher J. Brody <chris.brody@gmail.com>
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
Raphael von der Grün [Wed, 15 Aug 2018 13:56:20 +0000 (15:56 +0200)]
Avoid requireNoCache in pkgJson-restore.spec (#645)
See #644
Raphael von der Grün [Wed, 15 Aug 2018 12:22:10 +0000 (14:22 +0200)]
Merge pull request #641 from raphinesse/create-not-assert
Create test projects instead of asserting their properties
Raphael von der Grün [Tue, 14 Aug 2018 15:17:59 +0000 (17:17 +0200)]
Delete obsolete fixtures
Raphael von der Grün [Thu, 26 Jul 2018 14:58:24 +0000 (16:58 +0200)]
Create test projects instead of asserting them
Raphael von der Grün [Wed, 15 Aug 2018 00:43:41 +0000 (02:43 +0200)]
Honest specs in pkgJson-restore.spec (#638)
This aligns the code of various specs with their respective
descriptions. Affects tests 001, 002, 003, 004 and 016.
Raphael von der Grün [Wed, 15 Aug 2018 00:36:35 +0000 (02:36 +0200)]
Pin Jasmine to 3.1 to work around Promise issues (#639)
A change in Jasmine 3.2 seems to be responsible for the recent CI failures. Pinning it to 3.1 for now.
See https://github.com/apache/cordova-ios/issues/393,
See https://github.com/jasmine/jasmine/issues/1590
See #636
Raphael von der Grün [Tue, 14 Aug 2018 22:27:08 +0000 (00:27 +0200)]
Make coverage script consider e2e tests too (#637)
Uses nyc for code coverage
Raphael von der Grün [Tue, 14 Aug 2018 21:32:23 +0000 (23:32 +0200)]
Merge pull request #634 from raphinesse/cleanup-spec-restore
Cleanup pkgJson-restore.spec
Raphael von der Grün [Sat, 14 Jul 2018 18:52:04 +0000 (20:52 +0200)]
pkgJson-restore.spec: Better names for various tests
This commit is separated from the previous cleanup to make the diff more
readable.
Raphael von der Grün [Sat, 14 Jul 2018 18:45:14 +0000 (20:45 +0200)]
pkgJson-restore.spec: Merge more describe blocks
This commit is separated from the previous cleanup to make the diff more
readable.
Raphael von der Grün [Wed, 11 Jul 2018 23:40:57 +0000 (01:40 +0200)]
Cleanup pkgJson-restore.spec
This commit does not drop any test cases. However, it fixes various bugs
in the existing expectations and often asserts stronger expectations
than the original tests.
Changes include:
- DRY code
- Improve formatting
- Reduce excessive comments
- Simplify platform list generation
- More meaningful usage of describe blocks
- Wrap all tests in common describe to allow common setup/teardown
- Use fs-extra for setup/teardown
Raphael von der Grün [Sat, 4 Aug 2018 10:02:58 +0000 (12:02 +0200)]
Merge pull request #633 from raphinesse/minor-spec-improvements
Minor spec improvements
Raphael von der Grün [Fri, 6 Jul 2018 02:18:52 +0000 (04:18 +0200)]
DRY platform.check unit tests
Raphael von der Grün [Tue, 24 Jul 2018 11:17:39 +0000 (13:17 +0200)]
Remove obsolete ESLint comments
Raphael von der Grün [Tue, 17 Jul 2018 16:32:08 +0000 (18:32 +0200)]
Randomize test tmpDir to avoid caching issues
Raphael von der Grün [Tue, 24 Jul 2018 15:37:29 +0000 (17:37 +0200)]
Add helper to set default timeout properly
Raphael von der Grün [Fri, 13 Jul 2018 11:46:07 +0000 (13:46 +0200)]
More compact jasmine helper definition
Raphael von der Grün [Tue, 24 Jul 2018 14:35:57 +0000 (16:35 +0200)]
Use more verbose test reporter
This new reporter gives a better idea which tests are currently running,
how long individual tests take and during which tests output occurred.
All of this information is especially helpful when tests are run in CI.
Chris Brody [Fri, 3 Aug 2018 03:54:54 +0000 (23:54 -0400)]
Merge pull request #631 from amaldonado/CB-14243
CB-14243: change dash to underscore for save-exact key reference
amaldonado [Wed, 1 Aug 2018 21:11:32 +0000 (16:11 -0500)]
CB-14243: change dash to underscore for save-exact key reference
Jan Piotrowski [Tue, 31 Jul 2018 09:22:25 +0000 (11:22 +0200)]
Improve plugman/uninstall.js messages (#630)
* Improve plugman/uninstall.js messages
* Adapt plugman_uninstall.spec.js to new error messages
Raphael von der Grün [Tue, 24 Jul 2018 14:34:05 +0000 (16:34 +0200)]
Fix promise handling when removing multiple plugins (#628)
Raphael von der Grün [Thu, 12 Jul 2018 10:24:50 +0000 (12:24 +0200)]
CB-14033 Support symbolic dir links on Windows (#621)
This uses junctions whenever creating directory symlinks on Windows
since that does not require any special privileges.
Raphael von der Grün [Wed, 11 Jul 2018 23:02:23 +0000 (01:02 +0200)]
Merge pull request #624 from raphinesse/fetch-nomore
CB-13055 Fold all fetch options to `true`
Raphael von der Grün [Wed, 11 Jul 2018 21:10:17 +0000 (23:10 +0200)]
CB-13055 Fold all fetch options to `true`
Raphael von der Grün [Wed, 11 Jul 2018 21:10:16 +0000 (23:10 +0200)]
Mock out various functions that call cordova-fetch in tests
Raphael von der Grün [Wed, 11 Jul 2018 21:10:15 +0000 (23:10 +0200)]
Simplify rewire usage in platform.remove spec
Raphael von der Grün [Wed, 11 Jul 2018 21:10:14 +0000 (23:10 +0200)]
Fix test that was outside of an `it` call
Raphael von der Grün [Mon, 9 Jul 2018 23:40:11 +0000 (01:40 +0200)]
restore.spec: Wait for prepare promise to resolve (#626)
One test in pkgJson-restore.spec did NOT wait for the promise returned
by `prepare` to be resolved before continuing with other tasks.
Especially on Windows this could lead to EBUSY failures during cleanup
and in turn to failures during following tests.
Note: The order of emptyPlatformList() and prepare() does not seem to matter.
Thus I chose the variant that was used throughout all other tests.
Darryl Pogue [Sun, 8 Jul 2018 15:57:53 +0000 (08:57 -0700)]
Set the fetch option to true in plugman (#617)
Raphael von der Grün [Wed, 4 Jul 2018 09:02:42 +0000 (11:02 +0200)]
Clean up messy HooksRunner tests (#623)
These tests tended to cause spurious fails on CI.
Hopefully, this commit will stabilize them.
Noteworthy changes include:
- Reset test files before each test
- Don't disguise setup/teardown as tests
- Test 020 was dropped since it was actual a weaker version of 019
- Compare objects instead of JSON strings
- Don't use reserved words as variable names
- Reduce test duration by about 50%
- Fix linting errors
- Remove shelljs usage
- DRY and simplify code
- 200 LOC less
Raphael von der Grün [Wed, 4 Jul 2018 09:02:41 +0000 (11:02 +0200)]
CB-14140 Add fs-extra to allow for incremental adoption
Raphael von der Grün [Wed, 4 Jul 2018 09:02:40 +0000 (11:02 +0200)]
Work around AppVeyor/Node10 issue
Raphael von der Grün [Fri, 22 Jun 2018 13:33:01 +0000 (15:33 +0200)]
Let Jasmine handle async test results (#619)
There was a lot of sub-optimal error handling in the tests.
Instead of handling Promise rejection and resolution ourselves, we now
just return them from the test functions and let Jasmine handle them.
Moreover, this also fixes tons of negative tests that looked something like this:
f().then(function () {
expect('foo').toBe('bar');
}).catch(function (err) {
expect('' + err).toMatch('some message');
});
Problems being:
- `expect('foo').toBe('bar')` is less obvious than `fail(...)`
- catches its own Error from the `.then` only to fail because `err` is missing
- Does not check that err is an Error and that the message is in `.message`
So these were normalized to look like this:
f().then(function () {
fail('Expected promise to be rejected');
}).catch(function (err) {
expect(err).toEqual(jasmine.any(Error));
expect(err.message).toMatch('some message');
});
All in all, this commit has the following benefits:
- Removes 700 LOC w/out removing any testing
- Improves output when async tests fail
- Should make async tests less error prone
- Reduces Q-API usage to prepare for removal of Q (CB-14159)
knaito [Tue, 5 Jun 2018 11:09:20 +0000 (20:09 +0900)]
to pass the appveyor tests, adjusting timeouts, cleaning event listeners and update cordova-browser to 5.0.3
knaito [Mon, 4 Jun 2018 04:11:38 +0000 (13:11 +0900)]
improve tests using ios@4.5.4, adjusting timeout params and improve plugin remove sequentially
Darryl Pogue [Tue, 19 Dec 2017 21:26:30 +0000 (13:26 -0800)]
CB-13532: Find plugins in devDependencies
Darryl Pogue [Wed, 16 May 2018 03:10:53 +0000 (20:10 -0700)]
Merge pull request #612 from raphinesse/drop-node4
CB-14065: Drop support for Node 4 and add Node 10 to CI
Raphael von der Grün [Tue, 15 May 2018 21:03:06 +0000 (23:03 +0200)]
CB-14065: Drop support for Node 4 and add Node 10 to CI
Also removed before_install from Travis configuration since Node 6
already comes with npm 3 there
Steve Gill [Wed, 2 May 2018 23:29:23 +0000 (16:29 -0700)]
Merge pull request #611 from dpogue/dependency-cleanup
Dependency cleanup
Darryl Pogue [Fri, 27 Apr 2018 03:42:30 +0000 (20:42 -0700)]
Fix failing test from inconsistent error format
Darryl Pogue [Fri, 27 Apr 2018 03:42:11 +0000 (20:42 -0700)]
Fix ElementTree error about unclosed XML tag
Darryl Pogue [Fri, 27 Apr 2018 03:41:41 +0000 (20:41 -0700)]
Update (and remove) several dependencies
Jesse MacFadyen [Mon, 8 Jan 2018 17:08:13 +0000 (09:08 -0800)]
Added browser default engine
This should be replaced at some point with a more dynamic method of looking up platform engines.
Steve Gill [Thu, 14 Dec 2017 21:43:45 +0000 (13:43 -0800)]
CB-13674 Incremented package version to -dev
Steve Gill [Thu, 14 Dec 2017 19:43:55 +0000 (11:43 -0800)]
CB-13674 Updated version and RELEASENOTES.md for release 8.0.0
Audrey So [Tue, 12 Dec 2017 00:54:43 +0000 (16:54 -0800)]
CB-13057: updated based on feedback
This closes #586
Audrey So [Tue, 1 Aug 2017 22:07:52 +0000 (15:07 -0700)]
CB-13057 : removed platformsJson from integration tests
Audrey So [Tue, 1 Aug 2017 22:06:41 +0000 (15:06 -0700)]
CB-13057 : removed save function and updated unit-tests after these changes
Steve Gill [Thu, 14 Dec 2017 04:59:07 +0000 (20:59 -0800)]
CB-13056: fixed tests
Audrey So [Thu, 14 Dec 2017 01:13:16 +0000 (17:13 -0800)]
CB-13056 : updated browser test files
This closes #588
Audrey So [Tue, 12 Dec 2017 22:08:55 +0000 (14:08 -0800)]
CB-13056 : added error message back in
Audrey So [Tue, 12 Dec 2017 17:54:23 +0000 (09:54 -0800)]
CB-13056 : removed PlatformApiPoly and tests
Audrey So [Thu, 7 Dec 2017 21:29:49 +0000 (13:29 -0800)]
CB-13056: rebased from master and updated unit tests
Audrey So [Tue, 1 Aug 2017 22:59:07 +0000 (15:59 -0700)]
CB-13056 : removed parsers and platformApi polyfill for webos, blackberry10, and ubuntu
Steve Gill [Thu, 14 Dec 2017 01:04:17 +0000 (17:04 -0800)]
CB-13674: updated pinned platforms
Steve Gill [Wed, 13 Dec 2017 23:57:29 +0000 (15:57 -0800)]
CB-13055: fixed failing tests
Audrey [Wed, 13 Dec 2017 22:40:56 +0000 (14:40 -0800)]
Merge pull request #10 from stevengill/master
Fixed failing tests
This closes #608
Steve Gill [Wed, 13 Dec 2017 06:54:51 +0000 (22:54 -0800)]
CB-13674: updated cordova dependencies
Steve Gill [Wed, 13 Dec 2017 05:14:42 +0000 (21:14 -0800)]
CB-13055: fixed failing tests
Audrey So [Tue, 12 Dec 2017 22:04:04 +0000 (14:04 -0800)]
CB-13055 : updated after PR feedback
Audrey So [Tue, 28 Nov 2017 19:10:38 +0000 (11:10 -0800)]
CB-13055 : added info to plugin util file and rm registry and updated tests
Audrey So [Wed, 2 Aug 2017 17:21:06 +0000 (10:21 -0700)]
CB-13055 : updated integration tests, removed lazy_load.js, removed gitclone and nofetch, and npm dependency
Audrey So [Tue, 12 Dec 2017 22:04:04 +0000 (14:04 -0800)]
CB-13055 : updated after PR feedback
This closes #608
Audrey So [Tue, 28 Nov 2017 19:10:38 +0000 (11:10 -0800)]
CB-13055 : added info to plugin util file and rm registry and updated tests
Audrey So [Wed, 2 Aug 2017 17:21:06 +0000 (10:21 -0700)]
CB-13055 : updated integration tests, removed lazy_load.js, removed gitclone and nofetch, and npm dependency
Steve Gill [Tue, 12 Dec 2017 23:54:29 +0000 (15:54 -0800)]
fixed failing test
Steve Gill [Mon, 11 Dec 2017 18:53:37 +0000 (10:53 -0800)]
Merge pull request #607 from audreyso/CB-13532
CB-13532 : updated to include a check for pkgJson devDependencies
Steve Gill [Fri, 8 Dec 2017 18:46:18 +0000 (10:46 -0800)]
Merge pull request #603 from audreyso/CB-12361-check.js
CB-12361 : added unit tests for check.js
Steve Gill [Fri, 8 Dec 2017 18:34:33 +0000 (10:34 -0800)]
Merge pull request #606 from audreyso/CB-12810
CB-12810 : keep existing formatting in package.json and fix eslint errors
Audrey So [Fri, 3 Nov 2017 16:48:18 +0000 (09:48 -0700)]
CB-12810 : updated indenting for pkgJson and fixed eslint errors
Audrey So [Wed, 8 Nov 2017 19:06:47 +0000 (11:06 -0800)]
:CB-13532 : updated to include a check for pkgJson devDependencies
Audrey [Tue, 31 Oct 2017 20:22:01 +0000 (13:22 -0700)]
Merge pull request #604 from audreyso/CB-13501
CB-13501 : added support for node 8 and cleaned up eslint
Audrey So [Tue, 31 Oct 2017 18:24:04 +0000 (11:24 -0700)]
CB-13501 : added support for node 8 and cleaned up eslint