Skip to content

Commit

Permalink
logging of all files in test specs
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 29, 2024
1 parent 6365467 commit aef78a5
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ jobs:
with:
path: coverage

- name: Display Content of JSON Files
run: |
echo "Displaying content of all test-spec-coverage JSON files..."
for file in $(find ./ -name "test-spec-coverage-*.json"); do
echo "Contents of $file:"
cat $file | jq .
done
- name: Collect Test File Names
run: |
files=$(find tests/. -name "*.yaml" | xargs realpath)
Expand Down Expand Up @@ -162,6 +170,7 @@ jobs:
' $(find ./ -name "test-spec-coverage-*.json") > ./coverage/missing_paths.txt
cat ./coverage/missing_paths.txt
echo "Finished displaying missing paths"
- name: Output Full Operations List
run: |
echo "Outputting full operations list for debugging..."
Expand All @@ -184,17 +193,6 @@ jobs:
' $(find ./ -name "test-spec-coverage-*.json") > ./coverage/unique_operations.txt
cat ./coverage/unique_operations.txt
- name: Output Full Operations List
run: |
echo "Outputting full operations list for debugging..."
jq -r -sc '
(map(.operations) | add) as $all_operations |
$all_operations |
map("\(.method) \(.path)") |
.[]
' $(find ./ -name "test-spec-coverage-*.json") > ./coverage/all_operations.txt
cat ./coverage/all_operations.txt
- name: Combine Test Coverage Data
shell: bash -eo pipefail {0}
run: |
Expand Down

0 comments on commit aef78a5

Please sign in to comment.