Widget testing itself does not affect your app's runtime performance or battery usage because tests run separately from the app on a test environment. However, well-written widget tests help catch UI bugs early, preventing performance issues caused by faulty UI code in production.
Running many widget tests can consume CPU and memory during development, but this does not impact the end-user app performance.