DevSecOps impacts testing by promoting early security integration into the software development process, incorporating security testing activities, shifting testing leftward, and emphasizing continuous testing and feedback. This approach ensures that security vulnerabilities are identified and resolved early and that the software is more secure and of higher quality.