mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1316] Code snippets for Test scripts #431
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#431
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @liyasthomas on GitHub (Nov 3, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1316
Is your feature request related to a problem? Please describe.
Post Requests Tests enable us to write and run test scripts after response. As of now, there's no ready-to-use code snippets available for test cases.
Describe the solution you'd like
It would be great if there's a pool of code snippets or Test script with general test scripts.
Example:
Test snippet:
Check if response is okDescribe alternatives you've considered
Go to Wiki and figuring out what and how to write tests.
Additional context
Post request scripts are an experimental / incomplete feature. But has huge potential in terms of testing responses and automating stuffs to an extend. Also helps in integrations with 3rd party apps in future .
@carlos-ds commented on GitHub (Nov 30, 2020):
@liyasthomas I'd like to work on this if that's ok with you. But I'm not sure if you are talking about updating Post Requests Tests with more examples or whether you are talking about incorporating examples into the application itself?
@liyasthomas commented on GitHub (Nov 30, 2020):
I was mentioning about adding ready-made script snippets for general testing purposes so that users don't have to write the testing script by themselves. Also I see you've already opened a feature request to add more protocols to testing property in #1353 which is really appreciated. That's a good opportunity there.
@carlos-ds commented on GitHub (Dec 11, 2020):
@liyasthomas I reviewed and updated the Wiki page regarding testing and updated the link at the Wiki index. I committed the changes directly since I read that pull requests aren't supported for Wiki pages. Could you review and let me know if it's ok?
@liyasthomas commented on GitHub (Dec 11, 2020):
@carlos-ds looks good to me. Thanks.
Also this seems like it's better when sample test scripts are in "Tests Wiki" rather than in "Tests section" in Hopp. Hence closing.