Skip to content

Commit f32c5b2

Browse files
epii-1keski
andauthored
Functionality tests for API/driver (#108)
* Added function tests for most api operations * Added function tests for most api operations * Updated readme for addition of test * Added simple check for lastUpdateDate * update changelog Co-authored-by: Robin Keskisärkkä <[email protected]>
1 parent d08c219 commit f32c5b2

File tree

4 files changed

+974
-4
lines changed

4 files changed

+974
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
**v0.1.4, to be released on ???**
2+
* New feature: Add tests for API and driver functionality
23
* Bug fix: Generate fields for edges in inputs used to update objects See: https://github.com/LiUGraphQL/woo.sh/issues/111
34
* New feature: Add support for unions. See: https://github.com/LiUGraphQL/woo.sh/issues/95
45
* New feature: Encode the typename as part of the inserted object. See: https://github.com/LiUGraphQL/woo.sh/issues/100

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ GraphQL service ready at: http://localhost:4000/
4747

4848
# Tests
4949

50+
## API/driver functionality
51+
Test for API and driver functionality can be found in `graphql-server/tests`.
52+
53+
To run them first Use the example above for the Star Wars schema, end then run `graphql-server\tests\client-api-tests`
54+
5055
## Directives/Constrains
5156
Tests for directives checking can be found in `graphql-server/tests`.
5257

example/config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ generation:
2626
query_type_filter: true
2727
query_list_of: true
2828
query_by_key: true
29+
query_edge_by_id: true
2930
# add input types
3031
input_to_create_objects: true
3132
input_to_update_objects: true
3233
# add edge input types (update not supported)
3334
input_to_create_edge_objects: true
34-
input_to_update_edge_objects: false
35+
input_to_update_edge_objects: true
3536
# add mutations
3637
create_objects: true
3738
update_objects: true
38-
delete_objects: false
39+
delete_objects: true
3940
# add edge mutations (update and delete not supported)
4041
create_edge_objects: true
41-
update_edge_objects: false
42-
delete_edge_objects: false
42+
update_edge_objects: true
43+
delete_edge_objects: true

0 commit comments

Comments
 (0)