mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #1255] [MERGED] Run tests against all codegen instead of individual ones #3176
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#3176
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/1255
Author: @yq314
Created: 10/9/2020
Status: ✅ Merged
Merged: 10/9/2020
Merged by: @liyasthomas
Base:
master← Head:refactor-tests-for-all-codegen📝 Commits (3)
1b065b1run tests against all codegens instead of individual ones57dc9d9table testingb4d5ff5fixture is no longer needed📊 Changes
6 files changed (+957 additions, -190 deletions)
View changed files
➕
helpers/codegen/__tests__/__snapshots__/codegen.spec.js.snap(+863 -0)➕
helpers/codegen/__tests__/codegen.spec.js(+91 -0)➖
helpers/codegen/generators/__fixtures__/test-data.js(+0 -16)➖
helpers/codegen/generators/__tests__/__snapshots__/nodejs-native.spec.js.snap(+0 -98)➖
helpers/codegen/generators/__tests__/nodejs-native.spec.js(+0 -74)📝
helpers/codegen/generators/curl.js(+3 -2)📄 Description
Realized we don't need to write tests for generators separately as they are going to be exactly the same.
Instead, we just need to run the same set of tests against all generators at one go.
By doing this, discovered a bug in the curl generator that
authis not being passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.