File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed
Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @wpengine/hwp-previews-wordpress-plugin " : patch
3+ ---
4+
5+ chore: Updated testing docs to trigger workflow process.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments