File tree Expand file tree Collapse file tree
main/java/net/ladenthin/streambuffer
test/java/net/ladenthin/streambuffer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 - name : Run mutation tests with PIT
6262 run : mvn -B test-compile org.pitest:pitest-maven:mutationCoverage -Dmaven.javadoc.skip=true --file pom.xml
6363
64+ - name : Extract Pitest Survivors with Context
65+ if : always()
66+ run : |
67+ echo "=== PIT Survived Mutations ==="
68+ echo ""
69+
70+ # Loop through all HTML files in pit-reports
71+ for html_file in $(find target/pit-reports -name "*.html" -type f | sort); do
72+ echo "Processing: $html_file"
73+
74+ # Extract lines containing SURVIVED with context (2 before, 3 after)
75+ if grep -q "SURVIVED" "$html_file"; then
76+ echo "Found survivors in $html_file:"
77+ grep -B 2 -A 3 "SURVIVED" "$html_file"
78+ echo ""
79+ fi
80+ done
81+
82+ echo "=== Count unique survivors ==="
83+ echo "Check the 'Found survivors' sections above - each unique location with SURVIVED is one uncovered mutation"
84+
6485 - name : Upload PIT report
6586 if : always()
6687 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 116116 </execution >
117117 </executions >
118118 </plugin >
119- <plugin >
119+ <!-- < plugin>
120120 <groupId>org.apache.maven.plugins</groupId>
121121 <artifactId>maven-javadoc-plugin</artifactId>
122122 <version>3.12.0</version>
131131 </goals>
132132 </execution>
133133 </executions>
134- </plugin >
135- <plugin >
134+ </plugin> -->
135+ <!-- < plugin>
136136 <groupId>org.apache.maven.plugins</groupId>
137137 <artifactId>maven-gpg-plugin</artifactId>
138138 <version>3.2.8</version>
145145 </goals>
146146 </execution>
147147 </executions>
148- </plugin >
149- <plugin >
148+ </plugin> -->
149+ <!-- < plugin>
150150 <groupId>com.github.hazendaz.maven</groupId>
151151 <artifactId>coveralls-maven-plugin</artifactId>
152152 <version>5.0.0</version>
153- </plugin >
154- <plugin >
153+ </plugin> -->
154+ <!-- < plugin>
155155 <groupId>org.jacoco</groupId>
156156 <artifactId>jacoco-maven-plugin</artifactId>
157157 <version>0.8.14</version>
170170 </goals>
171171 </execution>
172172 </executions>
173- </plugin >
173+ </plugin> -->
174174 <plugin >
175175 <groupId >org.pitest</groupId >
176176 <artifactId >pitest-maven</artifactId >
190190 <param >net.ladenthin.streambuffer.*</param >
191191 </targetTests >
192192 <mutationThreshold >100</mutationThreshold >
193+ <timeoutConstant >30000</timeoutConstant >
193194 </configuration >
194195 </plugin >
195196 </plugins >
You can’t perform that action at this time.
0 commit comments