mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1353] Add more test methods #444
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#444
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 @carlos-ds on GitHub (Nov 30, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1353
I'd like to add some more built-in assertion methods to the tests section because that is currently limited to:
I'm thinking about adding at least:
I'd also write some tests for both these methods and the currently existing methods.
Let me know if you have more ideas or remarks about this topic.
@liyasthomas commented on GitHub (Nov 30, 2020):
Thanks for bringing this up. These are some essential additions. The testing part of Hoppscotch can be increased a lot more and have unmet potentials.
@carlos-ds commented on GitHub (Dec 1, 2020):
PR: #1357
@liyasthomas commented on GitHub (Dec 2, 2020):
Resolved in #1357.
@humbertoarizah commented on GitHub (Mar 29, 2022):
Hi, I have been having problems with the method "toHaveProperty", for any reason I'm getting an error ('unknown property 'toHaveProperty'). Even when I try to replicate the following example, I get the error:
// This test will pass
pw.test("Response is ok", () => {
pw.expect(pw.response.status).toBe(200);
pw.expect(pw.response.body).not.toHaveProperty("errors");
});
So, I'm not sure what is happening?
I would appreciated any help.