Граф коммитов

111 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić d147a422d4 [issue] Add `transfer` tests 2019-12-15 20:48:45 +01:00
Mislav Marohnić 121d04ed93 Avoid executing `git web--browse` in tests 2019-11-14 23:15:19 +01:00
Mislav Marohnić ad927ebab4 Nullify GITHUB_REPOSITORY while testing 2019-11-14 23:15:04 +01:00
Mislav Marohnić 875d4288bf [help] Enable `hub help --web <command>`
- `share/man/man1/*.html` now live in `share/doc/hub-doc/*.html`
- `help.format` git config values "web" & "html" now supported
2019-10-31 01:58:47 +01:00
Mislav Marohnić 9238e0b57f [test] Fix localization under Docker 2019-10-29 11:06:16 +01:00
Mislav Marohnić 595856c483 [test] Ensure that cukes do write operations outside of project dir 2019-10-29 11:06:16 +01:00
Mislav Marohnić a909f2630f [test] Clear cache between `hub api` tests 2019-10-29 11:06:16 +01:00
Mislav Marohnić 2157016f65 Speed up setting environment variables in Aruba 2019-08-22 00:16:29 +02:00
Mislav Marohnić 15d4bc951c Speed up cucumber tests
This replaces Aruba's usage of ChildProcess with `popen3`. It supports
no process timeouts, but damn it's fast.
2019-08-22 00:16:29 +02:00
Mislav Marohnić 14fc5cba27 🔥 obsolete Aruba tweaks 2019-08-21 19:55:03 +02:00
Mislav Marohnić 8d50944b2f Leverage `run_command_and_stop` from Aruba 2019-08-21 19:17:46 +02:00
Mislav Marohnić 09285c4872 Fix matching variable output such as `$HOME` for new Aruba 2019-08-21 18:22:48 +02:00
Mislav Marohnić dbef9c5425 🔥 `in_current_directory` 2019-08-21 17:54:23 +02:00
Mislav Marohnić a770e967c6 Timeout::Error 2019-08-21 17:29:55 +02:00
Mislav Marohnić 11c6418747 Misc. Aruba compatibility 2019-08-21 17:29:00 +02:00
Mislav Marohnić 9a8bf6c881 Aruba compatibility re: current dir and subcommands 2019-08-21 17:27:57 +02:00
Mislav Marohnić 48f8c34ebd Aruba compatibility for environment variables 2019-08-21 17:21:53 +02:00
Mislav Marohnić 29d99d0412 Retry starting up local API server before failing
Attempts to address intermittent "Rack application timed out during boot"
https://travis-ci.org/github/hub/jobs/574770004
2019-08-21 12:07:44 +02:00
Mislav Marohnić 7a4c893a14 [test] Fix `git fetch` stub 2019-02-24 10:34:59 +01:00
Mislav Marohnić 5d42f7dbad [checkout] Make it work independently of remote refspec
This fixes:

    fatal: Cannot setup tracking information; starting point 'BRANCH' is not a branch.

if the remote refspec is set up to only fetch specific branches and NOT
like the default `+refs/heads/*:refs/remotes/origin/*`.

I don't understand why would git, after fetching into
`refs/remotes/origin/BRANCH`, complain that `origin/BRANCH` is not a
branch, but there we have it. Setting up upstream tracking manually
works around this problem.
2019-02-24 09:58:51 +01:00
Mislav Marohnić d21937391a [pr] New format fields `%pS` and `%pC` for PR state and color
- `%pS`: "open", "draft", "merged", or "closed"
- `%pC`: green, gray, purple, or red
2019-02-18 15:26:06 +01:00
Mislav Marohnić 95592b5701 [api] Improve caching
- sort query string in cache key
- include "Accept", "Authorization" headers in cache key
- allow caching of `/graphql` responses
2019-01-24 20:05:26 +01:00
Mislav Marohnić f1771054ca Fix tests broken by `--list-cmds` hacks 2018-07-07 13:35:00 +02:00
Mislav Marohnić aecae7c2b5 Remove Aruba timing hacks 2018-06-08 21:05:14 +02:00
Mislav Marohnić e2db1307dc No need for RUBYLIB hacks anymore 2018-06-08 21:05:14 +02:00
Mislav Marohnić d6f6c2426b Update Cucumber 2018-06-08 21:05:14 +02:00
Mislav Marohnić f8bd902145 Support XDG Base Directory Specification
Respect XDG_CONFIG_HOME and XDG_CONFIG_DIRS.
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables

Fixes #1048, closes #1061
2018-06-07 19:57:02 +02:00
Mislav Marohnić 839a5f38f2 Ignore `XDG_CONFIG_*` environment variables in tests
This avoids polluting the user's home environment.
https://github.com/github/hub/pull/1705#issuecomment-392759921
2018-06-07 11:43:28 +02:00
Mislav Marohnić d4e484b251 Skip fish completion tests if fish is not installed
Fixes #1654
2018-01-22 22:08:46 +01:00
Michael Kaiser 57ccc3a208 Fix tmux_pane_content test helper
Ignore all lines that are printed before the first command prompt. On
some systems bash prints a message about how to use the sudo command
when started with a clean `HOME`, causing some tests to fail.

Fixes #1477
2017-10-02 22:45:49 +02:00
Pepper Lebeck-Jobe 3b04080f94
Remove unneeded assignment
The useless assignment was causing the cucumber test suite to fail
even when the completion scenarios were skipped.
2017-05-09 21:08:26 +09:00
Pepper Lebeck-Jobe 078583db0c
Fix bash completion test on MacOS X
However my git installation was run, it installed the
git-completion.{bash,zsh} scripts under
"${GIT_PREFIX}/contrib/completion/" instead of any of the paths that
this test case was expecting.

To make matters worse, the only way to know that this was the problem
was that each scenaro failed with a message about timing out while
waiting for completion to happen in tmux. Just in case there are
other paths out there where the git-distributed completion scripts
may live, I've also added some detection logic to raise an exception
during the "Given" clause of the scenario if we cannot find the
git-distributed bash completion scripts in any of the places we're
looking for them. This would have made it a lot easier to diagonse
the failures.
2017-05-09 20:50:27 +09:00
Mislav Marohnić 13b87db65a Add automated tests for fish completion 2017-02-06 15:20:17 +01:00
Mislav Marohnić 4a7f8cb53a Isolate tests from user's configuration via env
Fixes #1320
2016-10-29 01:38:41 +02:00
Mislav Marohnić 28be560825 Ensure that the SHA for each test commit is unique
Since the test commits are empty and had identical commit messages, two
commits with the same parent could end up having identical SHAs. To
avoid that, generate a unique message for each empty commit.
2016-09-12 10:00:49 +02:00
Mislav Marohnić 3ab56f59b5 Fix assigning labels/assignees without the other
The GitHub API doesn't seem to like receiving `"assignees": null`.

Fixes #1240
2016-09-08 23:27:32 +02:00
Pascal Corpet 516773a65a Make tests more robuts to various locales. 2016-02-15 09:29:42 +01:00
Mislav Marohnić 44a4761edf Have `hub help hub` open hub man page 2016-01-22 22:47:17 +11:00
Mislav Marohnić 0bbe55b2f6 Merge remote-tracking branch 'origin/clone-usage' 2016-01-22 01:37:26 +11:00
Mislav Marohnić b64cc38f43 Really reset current localization settings
Fixes #841
2015-09-28 00:00:26 +02:00
Mislav Marohnić 17a4df595a Add scheme to HUB_TEST_HOST to avoid confusing Go error 2015-09-27 22:42:49 +02:00
Mislav Marohnić 1c6d4b8cf5 Make GITHUB_TOKEN have precedence over auth info from config 2015-09-26 10:41:53 +02:00
Mislav Marohnić 2b7df7cf81 Fix path to bash completion script when Xcode's git is used on Travis 2015-06-02 18:00:15 +02:00
Jingwen Owen Ou 7b55582ee8 Rename environment variables starting with `GH_` to `HUB_` 2015-01-20 21:59:04 -08:00
Mislav Marohnić 00b846af46 Backport cukes from 1.12-stable branch 2014-12-24 20:20:28 -08:00
Mislav Marohnić a0835d446b Merge pull request #743 from github/imporve_auth_process
Improve authentication process for v2.2.0

Fixes #728, fixes #622
2014-12-24 20:03:53 -08:00
Mislav Marohnić f94c31cc0f Add cukes from https://github.com/github/hub/pull/738 2014-12-24 09:10:21 -08:00
Jingwen Owen Ou 356173d4a4 Back port cukes from v1.12.3
v2.2.0 doesn’t have the bug bc4b450b61 but back porting the cukes in case there’ll be regression for v2.2.0.
2014-12-24 09:02:18 -08:00
Owen Ou c8ffd06ec3 Build Hub in a temporary dir for cukes
We need to run the packaging script for every platform using a Vagrant box. During the packaging step, cukes are run. However, the workspace is shared between host and the Vagrant box. Instead of cleaning up the built binary for each platform, build it into a temporary dir.
2014-10-15 16:18:28 -07:00
Mislav Marohnić 3294fe5560 Merge pull request #601 from github/no-curl
gh: Move away from using curl for patches and to GitHub API
2014-09-22 08:22:04 -07:00