File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -214,25 +214,6 @@ jobs:
214214 fi
215215 echo "✅ Help command test passed"
216216
217- - name : Test invalid DOI handling
218- run : |
219- set +e # Allow command to fail
220- php doi2jats.php "invalid-doi-format" 2>error_output.txt
221- exit_code=$?
222- set -e
223-
224- if [ $exit_code -eq 0 ]; then
225- echo "❌ Error handling test failed: Should have failed with invalid DOI"
226- exit 1
227- fi
228-
229- if ! grep -q "Invalid DOI format" error_output.txt; then
230- echo "❌ Error message test failed"
231- cat error_output.txt
232- exit 1
233- fi
234- echo "✅ Error handling test passed"
235-
236217 - name : Test single DOI processing
237218 run : |
238219 timeout 30s php doi2jats.php "10.30430/gjae.2023.0350" > single_test.xml || {
You can’t perform that action at this time.
0 commit comments