Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tavern] YAML Tests #178

Merged
merged 6 commits into from
Apr 12, 2023
Merged

[Tavern] YAML Tests #178

merged 6 commits into from
Apr 12, 2023

Conversation

KCarretto
Copy link
Collaborator

What type of PR is this?

/kind cleanup
/kind feature

What this PR does / why we need it:

Now we can write GraphQL tests by simply providing YAML file test cases. This will enable us to dramatically improve test coverage, as well as easily add regression tests in the future.

Which issue(s) this PR fixes:

Fixes #137

@KCarretto KCarretto requested a review from hulto March 30, 2023 01:47
@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Merging #178 (c454bc9) into main (ceab700) will increase coverage by 0.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
+ Coverage   69.33%   69.64%   +0.31%     
==========================================
  Files          75       75              
  Lines        3779     3779              
==========================================
+ Hits         2620     2632      +12     
+ Misses       1078     1067      -11     
+ Partials       81       80       -1     

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KCarretto KCarretto merged commit c1d9ef9 into main Apr 12, 2023
@KCarretto KCarretto deleted the tavern-testing branch April 12, 2023 21:30
KCarretto added a commit that referenced this pull request Feb 1, 2024
 
[Tavern] YAML Tests (#178)

* Enabled defining tavern tests using YAML

* Added a few test cases

* added mutation tests

* added simple query tests

* Updated docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query Tests
2 participants