diff --git a/pytest.ini b/pytest.ini
index b15e082c739bb4a8d62e9b2be811a076339b9e0b..c5186e582bb1a58fec0cb9bb6b7f30ee4210727f 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,6 +1,6 @@
 [pytest]
 addopts = --doctest-modules -p no:pytest_swh_core
-norecursedirs = docs .*
+norecursedirs = build docs .*
 markers =
     fs: tests that involve filesystem ios
     requires_optional_deps: tests in test_cli.py that should not run if optional dependencies are not installed