You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,46 @@ The `hypothesis_graphql.nodes` module includes a few helpers to generate various
143
143
144
144
They exist because classes like `graphql.StringValueNode` can't be directly used in `map` calls due to kwarg-only arguments.
145
145
146
+
### Negative Testing
147
+
148
+
`hypothesis-graphql` supports generating **invalid** GraphQL queries for negative testing. This is useful for testing error handling and validation logic in your GraphQL server.
149
+
150
+
Use the `mode=Mode.NEGATIVE` parameter to generate queries that should be rejected:
0 commit comments