Key Takeaways
- FDA expects test evidence scaled to risk: the IEC 62304 safety class decides whether you need unit, integration and system testing, and how much design detail to document.
- The 2023 premarket software guidance replaces Level of Concern with Basic and Enhanced documentation; Enhanced submissions add unit and integration test protocols and reports.
- Traceability linking requirements, ISO 14971 risk controls and test results is what reviewers and auditors check first.
- Cyber devices under section 524B need security testing, including penetration testing, plus an SBOM and a postmarket vulnerability plan.
- Automated CI pipelines fit FDA expectations when tools are validated and every result is tied to a controlled software version.
Is Your HealthTech Product Built for Success in Digital Health?
.avif)
Medical device software testing is not judged by how many tests you run. FDA reviewers, notified bodies and auditors want to see that the right tests exist for each risk, that every requirement can be traced to evidence that it works, and that the process producing that evidence is under control. A team with 95% code coverage and no traceability can fail a review that a smaller, well-documented test suite passes.
This guide explains what FDA and the standards it recognizes actually expect from software verification and validation: IEC 62304 safety classes, the 2023 premarket software guidance, risk-based testing under ISO 14971, cybersecurity testing under section 524B, and how all of it fits into an automated pipeline. It closes with practical advice on when to bring in an engineering partner and what to ask before you sign one.
The regulatory map: which documents define "enough testing"
No single FDA rule lists the tests your device software must pass. Expectations come from a stack of regulations, guidance documents and consensus standards that reinforce each other:
- Quality Management System Regulation (QMSR). FDA's amended 21 CFR Part 820 incorporates ISO 13485:2016 by reference and took effect on February 2, 2026. Design verification and design validation, including software validation, remain mandatory design controls; the vocabulary and structure now follow ISO 13485.
- General Principles of Software Validation (GPSV). FDA's long-standing guidance still frames device software validation as confirmation, through objective evidence, that software meets user needs and intended uses. Validation is a lifecycle activity, not a final test campaign. For tools used in production and the quality system, FDA's Computer Software Assurance guidance now covers what Section 6 of GPSV used to.
- IEC 62304. The FDA-recognized software lifecycle standard. It defines the activities (planning, requirements, architecture, design, unit, integration and system verification, release, maintenance) and scales them by software safety class.
- ISO 14971. Risk management for medical devices. It decides which hazards your software can contribute to and which risk controls must be verified.
- Content of Premarket Submissions for Device Software Functions (2023). Defines what software documentation goes into a 510(k), De Novo or PMA, at a Basic or Enhanced level.
- Premarket cybersecurity guidance and section 524B of the FD&C Act. Add security testing and an SBOM for devices that meet the "cyber device" definition.
IEC 62304 safety classes and the testing they require
IEC 62304 assigns each software system a safety class based on the worst harm its failure could contribute to, after considering risk controls external to the software. Class A means no injury is possible, Class B means non-serious injury is possible, and Class C means death or serious injury is possible. The class drives how much design detail and verification evidence you must produce. The summary below reflects IEC 62304:2006 with Amendment 1 (2015); always check the clauses against the edition your quality system references.
Classification must be justified in the risk file, and a class can only be lowered by risk controls outside that software item, such as a hardware interlock. Architecture also lets you segregate items: a Class C dose calculation module can sit beside a lower-class reporting module if the segregation is documented and verified.
The V-model below shows how each design level maps to a test level. The horizontal links are where auditors look first.
What FDA wants in the premarket submission
FDA's 2023 guidance "Content of Premarket Submissions for Device Software Functions" replaced the 2005 guidance and its Level of Concern model. Instead, you choose a documentation level:
- Basic documentation applies to most device software functions.
- Enhanced documentation applies where a failure or flaw could present a hazardous situation with a probable risk of death or serious injury, assessed before risk controls are applied. The guidance lists other triggers too, so read it for your device type.
For testing, the difference is material. At the Basic level, FDA expects a summary of unit, integration and system-level testing, plus system-level test protocols with expected results, observed results, pass/fail status and a test report. At the Enhanced level, FDA also expects unit and integration test protocols and reports. Both levels require a traceability analysis linking requirements, design, risk controls and tests, and a list of unresolved software anomalies with an assessment of their impact on safety and effectiveness.
The guidance also asks for a description of your development, configuration management and maintenance practices. At the Basic level, a declaration of conformity to IEC 62304 can cover much of that, which is one of the strongest practical reasons to build to the standard from day one. FDA can still request more during review.
Risk-based testing and traceability under ISO 14971
Risk management is what turns a generic QA plan into medical device software testing. ISO 14971 requires you to identify hazards, estimate and evaluate risks, implement risk controls and verify both that each control is implemented and that it is effective. When a risk control lives in software, such as an alarm threshold, an input range check or a watchdog, its verification is a software test, and that test must be traceable to the risk.
A traceability matrix that survives an audit links four things in both directions:
- User needs and software requirements, including requirements created as risk controls.
- Hazards and hazardous situations from the risk file, with the software items that can contribute to them.
- Design elements: architecture items, units and SOUP (software of unknown provenance, such as open-source libraries).
- Test cases and results at the right level, tied to a specific software version.
Test effort should follow risk. Requirements that implement Class C risk controls deserve boundary, fault-injection and negative tests; low-risk display text may only need a system-level check. Document that rationale in the test plan.
Cybersecurity testing, SBOM and section 524B
Section 524B of the FD&C Act, in force since March 2023, applies to "cyber devices": devices that include software, can connect to the internet and could be vulnerable to cybersecurity threats. Sponsors must submit a plan to monitor and address postmarket vulnerabilities, show processes that provide reasonable assurance the device and related systems are secure, and provide a software bill of materials (SBOM) covering commercial, open-source and off-the-shelf components. FDA's premarket cybersecurity guidance, most recently updated in 2025, explains what that evidence should look like.
In practice, FDA expects cybersecurity testing to sit alongside functional testing, with results in the submission. Typical evidence includes:
- Threat modeling and a security risk assessment kept separate from, but linked to, the safety risk file.
- Verification that each security control is implemented, such as authentication, authorization, encryption and secure update.
- Vulnerability scanning and static analysis of your code and SBOM components.
- Penetration testing, with the tester's independence from the development team described.
- Fuzz testing and attack-surface analysis for exposed interfaces.
Generate the SBOM from your build for every release, not by hand; it makes postmarket vulnerability monitoring far easier.
Test automation, CI and usability in a regulated pipeline
Nothing in FDA guidance or IEC 62304 prevents continuous integration. Automation usually improves compliance, because it produces consistent, timestamped evidence for every build. What changes in a regulated setting is the discipline around it:
- Tool validation. Test frameworks, CI runners and static analyzers that produce quality records need a documented, risk-based assurance of fitness for intended use. FDA's Computer Software Assurance approach lets you scale that effort to risk rather than scripting exhaustive tool validation.
- Configuration management. Every test result must be tied to an identified software version, test environment and SOUP versions.
- Change control and regression. Each change needs an impact analysis that decides which tests to rerun; a full automated regression suite makes that analysis simpler to defend.
- Formal runs for release. Release evidence usually comes from a controlled run against a frozen build, with anomalies logged and dispositioned.
Usability is the one area automation cannot cover. IEC 62366-1 and FDA's human factors guidance expect a usability engineering process that ends in summative validation with representative users performing critical tasks. Use-related hazards found there feed back into the risk file and often into new software requirements, so plan that work early rather than after system testing.
When to bring in a partner, and what to ask a vendor
Many SaMD and connected-device teams can write good software but have never shipped one through FDA review. A specialist partner pays off when you are building a Class B or C product, preparing your first 510(k) or De Novo, retrofitting IEC 62304 onto an existing codebase, or adding connectivity that turns your product into a cyber device.
Before you choose a vendor, ask questions that expose how they work in practice:
- Can you show a sample (redacted) traceability matrix linking requirements, risks and tests?
- How do you classify software items, and how do you document segregation between classes?
- Which parts of your CI pipeline produce design-history-file evidence, and how are your tools validated?
- How do you generate and maintain SBOMs, and who performs penetration testing?
- Will your documentation support a declaration of conformity to IEC 62304, and who owns the quality system?
Build compliant testing in from the first sprint
Momentum builds IEC 62304-compliant medical device software and SaMD with testing, traceability and documentation built into the delivery process. Our teams set up risk-based test strategies, automated pipelines that produce submission-ready evidence, SBOM generation and cybersecurity testing, and work alongside your regulatory and quality leads so the code and the design history file grow together.
If you are planning a regulated software product or preparing for an FDA submission, talk to our team about your device, its safety class and the evidence you will need.






