Skip to content

Commit 61bf1e8

Browse files
authored
Merge pull request #326 from oslabs-beta/master
PR for most recent iteration of Swell
2 parents 28f4b9b + f691cf9 commit 61bf1e8

File tree

208 files changed

+9428
-5007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+9428
-5007
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ module.exports = {
3434
// ===========================================
3535
// Set up ESLint for .js / .jsx files
3636
// ===========================================
37-
// .js / .jsx uses babel-eslint
38-
parser: 'babel-eslint',
37+
// .js / .jsx uses @babel/eslint-parser
38+
parser: '@babel/eslint-parser',
3939
parserOptions: {
4040
ecmaVersion: 2020,
4141
sourceType: 'module',

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ package-lock.json
1313
coverage/
1414
.vscode
1515
src/client/docs/
16+
test/failedTests
17+
.nyc_output
18+
jest-coverage
19+
mocha-coverage
20+
total-coverage
1621

1722
# Folder config file #
1823
######################
@@ -64,7 +69,9 @@ protos/
6469

6570
# testing #
6671
test/subSuites/*.png
72+
test/failedTests/*
73+
.nyc_output
6774

6875

6976
# db #
70-
.env
77+
.env

.jshintrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We use Github to host code, to track issues and feature requests, as well as acc
1616
Pull requests are the best way to propose changes to Swell. We actively welcome your pull requests:
1717

1818
1. Fork the repo and create your branch from `dev`.
19-
2. If you've added code that should be tested, add tests.
19+
2. If you've added code that should be tested, add tests (see testing details above "License" below).
2020
3. If you've changed APIs, update the documentation.
2121
4. Ensure the test suite passes.
2222
5. Make sure your code lints.
@@ -49,6 +49,18 @@ People _love_ thorough bug reports. I'm not even kidding.
4949
- 2 spaces for indentation rather than tabs
5050
- You can try running `npm run lint` for style unification
5151

52+
## Test early, test often!
53+
54+
- Run npm run test or npm run test-mocha for E2E testing with [Playwright](https://playwright.dev/docs/api/class-electron) and Mocha
55+
- Run npm run test-jest for unit and integration tests with Jest
56+
- Check code coverage!
57+
- In the 'test/coverage' directory, check jest-coverage and mocha-coverage directories
58+
- View each index.html in your browser for coverage reports generated with Istanbul that will show covered and uncovered lines in accessed modules
59+
- Merge the coverage reports by running npm run report
60+
- View an overall coverage report at index.html in the total-coverage directory
61+
- Contribute to the testing suite
62+
- Add tests for uncovered lines, modules, functions. Leave no stone unturned!
63+
5264
## License
5365

5466
By contributing, you agree that your contributions will be licensed under its MIT License.

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/getswell/getswell/issues)
99
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Swell-%20For%20all%20your%20streaming%20API%20testing%20needs&url=https://www.getswell.io&hashtags=SSE,WebSocket,HTTP,API,developers)
1010

11-
Swell is a API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL and gRPC.
11+
Swell is an API development tool that enables developers to test endpoints served over streaming technologies including Server-Sent Events (SSE), WebSockets, HTTP2, GraphQL, gRPC, WebRTC, and OpenAPI.
1212

1313
## Getting Started
1414

@@ -71,19 +71,16 @@ Swell is a one-stop shop for sending and monitoring your API requests
7171
]
7272
```
7373

74-
- _Webhooks_: Swell includes user-defined HTTP callback connection testing designed to test other server's connection to the web and ability to send data. The test insures that when an event occurs, the source site makes an HTTP request to the URL configured for the webhook.
75-
<kbd><img src="./ReadMeGifs/Gifs/Webhook.gif" style="float: left; margin-right: 10px;margin-bottom : 30px; margin-top : 10px;" /></kbd>
7674

7775
## Additional Features
7876

79-
- _Send Request Directly to Endpoint_: You are able to immedeately send a request to an endpoint OR stage a request in your workspace for multi-level testing.
77+
- _Send Request Directly to Endpoint_: You are able to immediately send a request to an endpoint OR stage a request in your workspace for multi-level testing.
8078
<kbd><img src="./ReadMeGifs/Gifs/DirectSendRequest.gif"
8179
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
8280
- _Scripting in Swell_: Swell allows you to write assertion tests to aid in the test-driven development cycle of backend API services.
8381
<kbd><img src="./ReadMeGifs/Gifs/SimpleResponseTest.gif"
8482
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
8583
- _Workspaces_: Swell allows you to save workspaces for easier testing of multiple requests.
86-
- _Import/Export Workspaces_: Swell allows you to import and export workspaces, making it easy to share collections with your team.
8784
- _Preview_: You can now view a rendered preview of certain API responses (HTML)
8885
<kbd><img src="./ReadMeGifs/Gifs/AdditionalFeatures.gif"
8986
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
@@ -93,14 +90,24 @@ Swell is a one-stop shop for sending and monitoring your API requests
9390
- _Schedule Tests_: You can also automate sending requests to occur on a periodic basis.
9491
<kbd><img src="./ReadMeGifs/Gifs/ScheduleTest.gif"
9592
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
96-
- _Dark Mode_: Swell allows you to toggle between light and dark mode when viewing the application.
97-
<kbd><img src="./ReadMeGifs/Gifs/DarkMode.gif"
98-
style="float: left; margin-right: 10px; margin-bottom : 30px; margin-top : 10px; border: 1px solid black;" /></kbd>
9993

94+
## WIP Features
95+
**Clone this repo and check out dev mode for the latest and greatest!**
96+
97+
- _Webhooks_: Swell includes user-defined HTTP callback connection testing designed to test other server's connection to the web and ability to send data. The test insures that when an event occurs, the source site makes an HTTP request to the URL configured for the webhook.
98+
<kbd><img src="./ReadMeGifs/Gifs/Webhook.gif" style="float: left; margin-right: 10px;margin-bottom : 30px; margin-top : 10px;" /></kbd>
99+
100+
- *New in Dev Version 1.10.2!* _UI Updates_: Built with Material UI, a smoother, more intutive interface for enhanced user experience.
101+
<kbd><img src="./ReadMeGifs/Gifs/NewUI.png" style="float: left; margin-right: 10px;margin-bottom : 30px; margin-top : 10px;" /></kbd>
102+
103+
- *New in Dev Version 1.10.2!* _Github Integration + Import/Export Workspaces_: Swell allows you to import and export workspaces, making it easy to share collections with your team. You can even register with Github to save your workspaces directly into your repository!
104+
<kbd><img src="./ReadMeGifs/Gifs/GithubIntegration.gif" style="float: left; margin-right: 10px;margin-bottom : 30px; margin-top : 10px;" /></kbd>
100105
## Built With
101106
102107
- Electron
103108
- React
109+
- React Router
110+
- Material UI
104111
- Redux
105112
- Apollo Client
106113
- Websockets
@@ -111,6 +118,7 @@ Swell is a one-stop shop for sending and monitoring your API requests
111118
- IndexedDB
112119
- Chai
113120
- Mocha
121+
- Playwright
114122
115123
## Authors
116124
@@ -167,6 +175,10 @@ Swell is a one-stop shop for sending and monitoring your API requests
167175
- **Sam Pyo** - [samhpyo](https://github.com/samhpyo)
168176
- **Drew Pomatti** - [thedrewery](https://github.com/thedrewery)
169177
- **Kurtis Waterbury** - [kurto8](https://github.com/kurto8)
178+
- **Yale Yng-Wong** - [ywy-w](https://github.com/ywy-w)
179+
- **Evelin Goldin** - [evelingoldin](https://github.com/evelingoldin)
180+
- **Alexander Adams** - [alex-e-adams](https://github.com/alex-e-adams)
181+
- **Ethan Sclarsky** - [esclarsky](https://github.com/esclarsky)
170182
171183
## License
172184
-9.63 MB
Binary file not shown.

ReadMeGifs/Gifs/CollectionTest.gif

-6.56 MB
Binary file not shown.

ReadMeGifs/Gifs/ConcurrentStreams.gif

-4.41 MB
Binary file not shown.

ReadMeGifs/Gifs/DirectSendRequest.gif

-5.65 MB
Binary file not shown.

ReadMeGifs/Gifs/GithubIntegration.gif

4.05 MB
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[ZoneTransfer]
2+
ZoneId=3
3+
HostUrl=https://files.slack.com/files-pri/T02UEDCSEJ1-F03GLHVTD6D/download/swell-gif.gif?origin_team=T02UEDCSEJ1

ReadMeGifs/Gifs/GraphQL.gif

-3.51 MB
Binary file not shown.

ReadMeGifs/Gifs/NewUI.png

767 KB
Loading

0 commit comments

Comments
 (0)