• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wp-graphql / wp-graphql-woocommerce / 23354837106
84%

Build:
DEFAULT BRANCH: develop
Ran 20 Mar 2026 05:40PM UTC
Jobs 1
Files 231
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Mar 2026 05:31PM UTC coverage: 83.637% (+0.4%) from 83.244%
23354837106

push

github

web-flow
feat: Product and product attribute mutations (#851)

* devops: Product and product attribute mutation tests generated

* feat: Product Mutations implemented and tested

* chore: Linter and PHPStan compliance met

* fix: resolve test failures in product and variation mutation tests

- Removed duplicate requires for payment-method classes (rebase artifact)
- Wrapped bare `attributes` queries in `... on SimpleProduct` inline
  fragments (attributes field is on ProductWithAttributes interface,
  not the base Product type)
- Fixed attribute label expectations to match factory output (lowercase)
- Fixed relay ID prefix from 'product'/'product_variation' to 'post'
  to match WPGraphQL's actual encoding
- Cache WP_Post before force-deletion and re-cache after so the Product
  model's type resolver can still determine the GraphQL type in the
  response
- Added wp_cache_flush() before asserting product deletion to avoid
  false positives from the re-cached post

* chore: fix PHPCS lint errors in mutation files

* fix: resolve CI test failures for attribute and variation mutations

- Fixed ProductVariation type registration in schema filters so the
  variation mutation output field resolves correctly
- Renamed attribute slug from 'pattern' to 'fabric' in
  ProductAttributeMutationsTest to avoid collision with the pattern
  attribute created by ProductAttributeQueriesTest
- Fixed PHPStan errors for redundant is_wp_error checks
- Updated IntrospectionQueryTest

1251 of 1437 new or added lines in 23 files covered. (87.06%)

13995 of 16733 relevant lines covered (83.64%)

91.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.21
includes/mutation/class-product-attribute-create.php
1
96.88
includes/mutation/class-product-attribute-delete.php
1
97.83
includes/mutation/class-product-attribute-update.php
2
30.42
-0.21% includes/class-core-schema-filters.php
6
89.29
includes/mutation/class-product-attribute-term-delete.php
10
82.14
includes/mutation/class-product-variation-delete.php
14
84.95
includes/mutation/class-product-attribute-term-create.php
20
71.83
includes/mutation/class-product-delete.php
21
11.26
-0.76% includes/class-wp-graphql-woocommerce.php
25
92.35
includes/mutation/class-product-create.php
34
83.81
includes/mutation/class-product-variation-create.php
51
66.45
includes/data/mutation/class-product-mutation.php
Jobs
ID Job ID Ran Files Coverage
1 23354837106.1 20 Mar 2026 05:39PM UTC 231
83.64
GitHub Action Run
Source Files on build 23354837106
  • Tree
  • List 231
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b6576d41 on github
  • Prev Build on develop (#23270674421)
  • Next Build on develop (#23365889684)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc