Skip to content

Commit ac2f45b

Browse files
committed
Fixes for pre-release process. Updated testing docs for previews
1 parent 6e8be71 commit ac2f45b

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/pre-release-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ jobs:
126126
- name: Create plugin archive
127127
working-directory: ${{ steps.metadata.outputs.PLUGIN_DIR }}
128128
run: |
129-
mkdir -p plugin-build
130-
composer archive --format=zip --file="plugin-build/${{ steps.plugin.outputs.plugin_slug }}.zip"
129+
rm -f plugin-build/${{ steps.plugin.outputs.plugin_slug }}.-*.zip
130+
composer archive -vvv --format=zip --file="plugin-build/${{ steps.plugin.outputs.plugin_slug }}" --dir="."
131131
132132
# Verify archive was created
133133
if [ ! -f "plugin-build/${{ steps.plugin.outputs.plugin_slug }}.zip" ]; then

plugins/hwp-previews/TESTING.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,22 @@ Currently the plugin has the following suite of tests
6161

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

64-
Run WPUnit tests (WordPress loaded):
64+
You can also run WPUnit tests using Composer scripts:
6565

6666
```bash
67-
sh bin/local/run-unit-tests.sh coverage
67+
composer run test:unit
68+
```
69+
70+
To generate coverage reports:
71+
72+
```bash
73+
composer run test:unit:coverage
74+
```
75+
76+
To generate an HTML coverage report:
77+
78+
```bash
79+
composer run test:unit:coverage-html
6880
```
6981

7082
> [!IMPORTANT]

0 commit comments

Comments
 (0)