feat(tests): add comprehensive tests for LinReg, StdDev, Variance, and Mama indicators; enhance Pwma constructor with null check; improve coverage path mappings in Qodana configuration

This commit is contained in:
Miha Kralj
2025-12-26 11:50:18 -08:00
parent 86e2934f1b
commit c2bc665ecf
10 changed files with 475 additions and 9 deletions
+9 -7
View File
@@ -65,20 +65,22 @@ jobs:
run: |
dotnet test --no-build --configuration Debug \
--collect:"XPlat Code Coverage" \
--results-directory:./TestResults \
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Collect Coverage Files
run: |
mkdir -p coverage
count=1
while read -r file; do
dest="coverage/coverage_${count}.opencover.xml"
cp "$file" "$dest"
# Sanitize paths for Qodana (convert absolute to relative)
# This strips the current working directory from the paths in the XML
sed -i "s|$(pwd)/||g" "$dest"
find TestResults -name "coverage.opencover.xml" | while read file; do
cp "$file" "coverage/coverage_${count}.opencover.xml"
count=$((count+1))
done < <(find . -name "coverage.opencover.xml" -type f)
done
- name: Debug Coverage Paths
run: |
echo "=== Coverage file paths ==="
grep -h "fullPath=" coverage/*.xml | head -20 || true
- name: Upload Coverage Artifacts
uses: actions/upload-artifact@v4