[PR #148] [CLOSED] Auto deploy pull requests, test and report #2445

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/148
Author: @yubathom
Created: 9/16/2019
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 6d9cd28 Pull request auto deploy, test and report
  • 41762bc Export surge variables

📊 Changes

13 files changed (+1272 additions, -11 deletions)

View changed files

📝 .gitignore (+5 -0)
📝 .travis.yml (+15 -4)
cypress.json (+9 -0)
📝 package-lock.json (+1051 -5)
📝 package.json (+7 -2)
prdeploy.sh (+24 -0)
tests/ci/prmessage.js (+58 -0)
tests/e2e/fixtures/example.json (+5 -0)
tests/e2e/integration/0_starter.js (+12 -0)
tests/e2e/integration/url_queries.js (+37 -0)
tests/e2e/plugins/index.js (+4 -0)
tests/e2e/support/commands.js (+25 -0)
tests/e2e/support/index.js (+20 -0)

📄 Description

This is related to #65

Features

  • Add a setup for local e2e tests with cypress
  • Deploy, at travis-ci enviroment , every PR's to surge
  • Run tests in this deployed url at ci. See at the build log the output for prdeploy.sh
  • Send from travis a brief result report at the pr 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 in 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:

  • I added my surge user at travis (SURGE_LOGIN and SURGE_TOKEN). It would be better to replace it for @liyasthomas account (to keep things centralized).
  • The github token should be able to write comment issues (probably it is already)

🔄 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/148 **Author:** [@yubathom](https://github.com/yubathom) **Created:** 9/16/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`6d9cd28`](https://github.com/hoppscotch/hoppscotch/commit/6d9cd28713285598954b8ef28de056caaf82eb7c) Pull request auto deploy, test and report - [`41762bc`](https://github.com/hoppscotch/hoppscotch/commit/41762bcbd56acb81648b17210f6d39ea148ffe30) Export surge variables ### 📊 Changes **13 files changed** (+1272 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+5 -0) 📝 `.travis.yml` (+15 -4) ➕ `cypress.json` (+9 -0) 📝 `package-lock.json` (+1051 -5) 📝 `package.json` (+7 -2) ➕ `prdeploy.sh` (+24 -0) ➕ `tests/ci/prmessage.js` (+58 -0) ➕ `tests/e2e/fixtures/example.json` (+5 -0) ➕ `tests/e2e/integration/0_starter.js` (+12 -0) ➕ `tests/e2e/integration/url_queries.js` (+37 -0) ➕ `tests/e2e/plugins/index.js` (+4 -0) ➕ `tests/e2e/support/commands.js` (+25 -0) ➕ `tests/e2e/support/index.js` (+20 -0) </details> ### 📄 Description This is related to #65 ### Features * Add a setup for local e2e tests with [cypress](https://www.cypress.io/) * Deploy, at travis-ci enviroment , every PR's to [surge](https://surge.sh/) * Run tests in this deployed url at ci. See at the build log the output for `prdeploy.sh` * Send from travis a brief result report at the pr page. [See an example at my fork](https://github.com/yubathom/postwoman/pull/36#issuecomment-531855449) ![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` in 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: - I added my surge user at travis (__SURGE_LOGIN__ and __SURGE_TOKEN__). It would be better to replace it for @liyasthomas account (to keep things centralized). - The github token should be able to write comment issues (probably it is already) --- <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#2445
No description provided.