[PR #151] [CLOSED] Auto deploy testing branches, test and report #2444

Closed
opened 2026-03-17 00:08:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/151
Author: @yubathom
Created: 9/17/2019
Status: Closed

Base: masterHead: master


📝 Commits (1)

📊 Changes

13 files changed (+1295 additions, -9 deletions)

View changed files

📝 .gitignore (+5 -0)
📝 .travis.yml (+15 -2)
cypress.json (+9 -0)
📝 package-lock.json (+1051 -5)
📝 package.json (+7 -2)
tests/ci/prmessage.js (+61 -0)
tests/e2e/fixtures/example.json (+5 -0)
tests/e2e/integration/0_starter.js (+10 -0)
tests/e2e/integration/url_queries.js (+54 -0)
tests/e2e/plugins/index.js (+4 -0)
tests/e2e/support/commands.js (+25 -0)
tests/e2e/support/index.js (+20 -0)
testsdeploy.sh (+29 -0)

📄 Description

This is related to #65.

Features

  • Add a setup for local e2e tests with cypress.
  • Deploy, with travis-ci, the last commit at branches named tests-* at surge.sh.
  • Run tests in this url.
  • Send from travis a comment with a brief result report of the tests at the commit page. See an example at my fork.

Screenshot_2019-09-16 Testing pull request auto-deployment and test report by yubathom · Pull Request #36 · yubathom postwo

New scripts:

  • npm run e2e - run tests locally (already running) localhost:3000 (cli mode).
  • npm run e2e:open- run tests locally to (already running) localhost:3000 in browser mode
  • npm run dev:e2e - start localhost:3000 and tests (browser mode). This is the default command to tdd.

obs:

  • The deployment pattern of urls at surge is: http://postwoman-:commithash.surge.sh
  • I added my surge user data at travis (login and token). It would be better to replace it for @liyasthomas account (to keep things centralized).
  • The github token env at travis should be able to write comment issues with curl (probably it is already).
  • I tried to do this routine at Pull Requests but I failed. I think it would be better. But could not find a workaround to pull requests restrictions.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/151 **Author:** [@yubathom](https://github.com/yubathom) **Created:** 9/17/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`612cd49`](https://github.com/hoppscotch/hoppscotch/commit/612cd491179d9e2612ad0e49bf4b3d20e6d69553) Testing branchs ### 📊 Changes **13 files changed** (+1295 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+5 -0) 📝 `.travis.yml` (+15 -2) ➕ `cypress.json` (+9 -0) 📝 `package-lock.json` (+1051 -5) 📝 `package.json` (+7 -2) ➕ `tests/ci/prmessage.js` (+61 -0) ➕ `tests/e2e/fixtures/example.json` (+5 -0) ➕ `tests/e2e/integration/0_starter.js` (+10 -0) ➕ `tests/e2e/integration/url_queries.js` (+54 -0) ➕ `tests/e2e/plugins/index.js` (+4 -0) ➕ `tests/e2e/support/commands.js` (+25 -0) ➕ `tests/e2e/support/index.js` (+20 -0) ➕ `testsdeploy.sh` (+29 -0) </details> ### 📄 Description This is related to #65. ### Features * Add a setup for local e2e tests with [cypress](https://www.cypress.io/). * Deploy, with travis-ci, the last commit at branches named `tests-*` at [surge.sh](https://surge.sh/). * Run tests in this url. * Send from travis a comment with a brief result report of the tests at the commit page. [See an example at my fork](https://github.com/yubathom/postwoman/commit/612cd491179d9e2612ad0e49bf4b3d20e6d69553#commitcomment-35121756). ![Screenshot_2019-09-16 Testing pull request auto-deployment and test report by yubathom · Pull Request #36 · yubathom postwo](https://user-images.githubusercontent.com/4117768/64977969-cd1fa380-d88a-11e9-862e-96e5355f452c.png) ### New scripts: * `npm run e2e` - run tests locally (already running) `localhost:3000` (cli mode). * `npm run e2e:open`- run tests locally to (already running) `localhost:3000` in browser mode * `npm run dev:e2e` - start `localhost:3000` and tests (browser mode). This is the default command to tdd. ### obs: - The deployment pattern of urls at surge is: `http://postwoman-:commithash.surge.sh` - I added my surge user data at travis (login and token). It would be better to replace it for @liyasthomas account (to keep things centralized). - The github token env at travis should be able to write comment issues with curl (probably it is already). - I tried to do this routine at Pull Requests but [I failed](https://github.com/liyasthomas/postwoman/pull/148). I think it would be better. But could not find a workaround to [pull requests restrictions](https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:08:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2444
No description provided.