Adam Stankiewicz
4af22cfbc0
[test] Replace sync-exec with spawn-sync
...
sync-exec has performance issue on Windows
2015-03-31 23:39:13 -07:00
Adam Stankiewicz
ab4f8a0e39
[test] Make synchronous exec work on Windows
2015-03-31 22:00:02 -07:00
Adam Stankiewicz
7e110603b5
[test] Make git helper in tests synchronous
2015-03-31 19:08:37 -07:00
Adam Stankiewicz
0f68da4eb8
Add support for two-factor authentication for login
2015-03-30 00:19:05 -07:00
Adam Stankiewicz
1a7abfd3b7
Add tests for login command
2015-03-29 23:31:20 -07:00
Adam Stankiewicz
905c2775d2
Add tests for unregister command
2015-03-29 17:56:04 -07:00
Mat Scales
126da9ee12
Unregister and login commands
2015-03-29 17:56:04 -07:00
Dan Rumney
a1ecf8a413
Fixes #1754 : The version command in the programmatic API now returns the new version
...
When users of the programmatic API update the version, they may do so without having to inspect the new contents of the bower.json file to find out the new version.
This is useful in scripts where the tag needs to be pushed programatically; the user can push the new tag explicitly.
2015-03-26 10:03:52 -05:00
Nils Winkler
7e0a2ea4cb
Added check for empty remote or no protocol set.
2015-03-24 20:36:15 +01:00
Nils Winkler
912808b672
Added support for caching hosts that support shallow cloning.
2015-03-24 20:22:15 +01:00
Nils Winkler
a352d51711
Using a function reference instead of calling directly from constructor
2015-03-24 17:14:28 +01:00
Nils Winkler
4ad5ed64d7
Automatically detecting _smart Git hosts_.
...
Added logic to automatically detect smart Git hosts that allow shallow
cloning. This is done by sending an `ls-remote` request to the server
and then evaluating the returned HTTP header fields. For this, Curl
verbose logging is enabled for the `ls-remote` request, since Curl
verbose logging sends the returned HTTP headers to `stderr`.
If the `stderr` output contains the desired header
Content-Type: application/x-git-upload-pack-advertisement
then the server supports shallow cloning.
This approach uses Git and Curl for the heavy lifting. Instead of
implementing the request to the server using a simple HTTP client, Git
is used, since it takes care of authentication using stored credentials.
The used approach should also work for BitBucket, which only sends the
Content-Type header when a specific user agent is used. Using Git to
make the request enables this behavior.
The function to detect the smart Git host
(`GitRemoteResolver.prototype._supportsShallowCloning`) returns a
promise that is resolved when the server's request is evaluated. The
promise handling required an addition to `GitHubResolver.js` - to always
resolve the promise to `true`, since GitHub supports shallow cloning.
Added test cases to verify the new functionality.
2015-03-24 17:13:18 +01:00
Adam Stankiewicz
182d92f9bd
test: Fix SvnResolver tests on all platforms
2015-02-28 23:56:17 -08:00
Adam Stankiewicz
61a68a9e38
test: Replace dejavu repo with pure (dejavu moved)
2015-02-28 19:52:40 -08:00
Alexander Gugel
2f6d680b6c
Add --save-exact flag
2015-01-11 17:12:19 +01:00
Adam Stankiewicz
c7df6f50ca
Add AppVeyor config for Windows CI
2015-01-11 03:08:43 +01:00
Adam Stankiewicz
df71d251f0
Disable SVN testing for unsuppoted hosts (e.g. AppVeyor)
2015-01-11 03:08:41 +01:00
Adam Stankiewicz
0b9acc18cc
Test reading commands arguments
2015-01-10 12:56:15 +01:00
Adam Stankiewicz
e351322ce4
More tests for lookup command and little refactor
2015-01-10 04:47:43 +01:00
Adam Stankiewicz
6b53ccc8bd
Add tests for init command and fix it
...
In non-interactive mode error has been thrown in wrong way.
2015-01-09 03:18:53 +01:00
Adam Stankiewicz
5e747b2cfd
Add tests for search and lookup commands
2015-01-09 02:22:05 +01:00
Adam Stankiewicz
3f8de0efb9
Add tests for cache clean command
2015-01-09 01:47:45 +01:00
Adam Stankiewicz
63da3e4595
Add tests for cache list command
2015-01-08 09:44:06 +01:00
Adam Stankiewicz
a04b69dc6a
Test and fix link command
2015-01-08 05:09:32 +01:00
Adam Stankiewicz
3be4764d54
Add tests for prune command
2015-01-07 03:32:55 +01:00
Adam Stankiewicz
2d4fec01b1
Refactor some tests to promise style
2015-01-07 02:04:34 +01:00
Adam Stankiewicz
85c50eb542
Inject credentials to ENV for Travis
2015-01-06 20:56:27 +01:00
Adam Stankiewicz
ee62d00c96
Add tests for "version" command
2015-01-06 20:49:17 +01:00
Adam Stankiewicz
52a32f0887
Add tests for JsonRenderer
2015-01-06 17:59:45 +01:00
Adam Stankiewicz
dd30be90ad
Fix StandardRenderer tests so they work on Travis
2015-01-06 16:03:58 +01:00
Adam Stankiewicz
4cb027eb73
Add tests for StandardRenderer
2015-01-06 15:56:10 +01:00
Adam Stankiewicz
8e0b8f2faf
[test] Force monochrome color for test cases
2015-01-06 03:12:32 +01:00
Adam Stankiewicz
39491b78b1
Test register prompt as on dumb terminal (fixes travis)
2015-01-06 02:24:39 +01:00
Adam Stankiewicz
7c82da8389
Add tests for register command
2015-01-06 02:13:30 +01:00
Adam Stankiewicz
dac055e2ef
Add timeout in hope to catch stdout on travis
2015-01-05 06:51:09 +01:00
Adam Stankiewicz
85df5b9983
Add test for bower binary nad standard renderer
2015-01-05 06:47:01 +01:00
Adam Stankiewicz
537cd42097
Add tests for info command
2015-01-05 06:07:01 +01:00
Adam Stankiewicz
9d06fce5f9
Add few more tests for home command
2015-01-05 05:31:12 +01:00
Adam Stankiewicz
c029e1005f
Add tests for "bower home" command
2015-01-05 05:19:54 +01:00
Adam Stankiewicz
b245a3d611
Remove unnecessary asserts from list test
2015-01-05 04:00:51 +01:00
Adam Stankiewicz
11d89c4268
fix: Tests helper regression
2015-01-05 03:48:59 +01:00
Adam Stankiewicz
6be84ab93e
Add test case for #1584
2015-01-05 03:40:34 +01:00
Adam Stankiewicz
2f2c4d6740
Add tests for help command and fix it
2015-01-05 03:31:28 +01:00
Merrifield, Jay
92ff0fe624
Added unit tests of bower.commands.list()
2014-12-04 23:29:03 -05:00
Adam Stankiewicz
c99482f59d
[doc] Explain why env in test/helpers.js is needed
2014-09-28 15:58:59 +02:00
Ray Shan
4656021902
fix broken analytics tracking introduced in #1507
2014-09-26 22:33:43 +02:00
Laurent Goderre
e83ab86f1f
Added update test cases
2014-09-16 16:23:38 -04:00
Adam Stankiewicz
8e458c21e9
[test] Make sure install ends before running next test
2014-09-13 16:12:06 +02:00
Adam Stankiewicz
4ab36cb3bc
[test] Use new temp location per process
2014-09-13 16:04:02 +02:00
Adam Stankiewicz
dfd2c7a3d2
Add tests to analytics and fix them
2014-09-12 21:28:44 +02:00