diff --git a/.gitignore b/.gitignore index 9433f6529..c7c58db99 100644 --- a/.gitignore +++ b/.gitignore @@ -18,9 +18,10 @@ nimble.develop nimble.paths go-libp2p-daemon/ -# Ignore all test build files in tests folder (auto generated when running tests), -# by ignoring anything that does not have following file name scheme: -# has extension or is Dockerfile... -/tests/* -!/tests/*.* -!/tests/Dockerfile \ No newline at end of file +# Ignore all test build files in tests folder (auto generated when running tests). +# First rule (`tests/**/test*[^.]*`) will ignore all binaries: has prefix test + does not have dot in name. +# Second and third rules are here to un-ignores all files with extension and Docker file, +# because it appears that vs code is skipping text search is some tests files without these rules. +tests/**/test*[^.]* +!tests/**/*.* +!tests/**/Dockerfile \ No newline at end of file