You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the org.pitest.maven.NonEmptyProjectCheck#exists method only checks if there exists such a File (in JDK sense). However, there is an edge case where the File is just an empty directory. In this case, pitest will treat module as non empty, and thus fail the test.
My suggestion is to recursively check the directory until there is an actual file.
The text was updated successfully, but these errors were encountered:
cheehonglee-lazada
changed the title
Test failed even though the module only contains a empty directory
Test failed even though the module only contains an empty directory
Nov 21, 2024
Currently, the
org.pitest.maven.NonEmptyProjectCheck#exists
method only checks if there exists such a File (in JDK sense). However, there is an edge case where the File is just an empty directory. In this case, pitest will treat module as non empty, and thus fail the test.My suggestion is to recursively check the directory until there is an actual file.
Relevant code portion:
Relevant Issue:
pitest fails to execute on projects that don't have test classes #314
The text was updated successfully, but these errors were encountered: