Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/grumpy-kangaroos-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/hwp-previews-wordpress-plugin": patch
---

chore: Updated testing docs to trigger workflow process.
4 changes: 2 additions & 2 deletions .github/workflows/pre-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ jobs:
- name: Create plugin archive
working-directory: ${{ steps.metadata.outputs.PLUGIN_DIR }}
run: |
mkdir -p plugin-build
composer archive --format=zip --file="plugin-build/${{ steps.plugin.outputs.plugin_slug }}.zip"
rm -f plugin-build/${{ steps.plugin.outputs.plugin_slug }}.-*.zip
composer archive -vvv --format=zip --file="plugin-build/${{ steps.plugin.outputs.plugin_slug }}" --dir="."

# Verify archive was created
if [ ! -f "plugin-build/${{ steps.plugin.outputs.plugin_slug }}.zip" ]; then
Expand Down
16 changes: 14 additions & 2 deletions plugins/hwp-previews/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,22 @@ Currently the plugin has the following suite of tests

### WPUnit (WordPress-aware Unit/Integration) Tests

Run WPUnit tests (WordPress loaded):
You can also run WPUnit tests using Composer scripts:

```bash
sh bin/local/run-unit-tests.sh coverage
composer run test:unit
```

To generate coverage reports:

```bash
composer run test:unit:coverage
```

To generate an HTML coverage report:

```bash
composer run test:unit:coverage-html
```

> [!IMPORTANT]
Expand Down
Loading