({{, (RefLink[MemoryConstraint, paclet:ref/MemoryConstraint]) 
is an option for (RefLink[TestReport, paclet:ref/TestReport]) and (RefLink[VerificationTest, paclet:ref/VerificationTest]) that specifies how much memory (in bytes) the test is allowed to use.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Run a test until a memory limit is exceeded:

ByteCount[Range[10^6]]

VerificationTest[ByteCount[Range[10^6]],8000144,MemoryConstraint->(QuantityUnit[8000])]["ActualOutput"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[TestReport, paclet:ref/TestReport])  ▪  (RefLink[VerificationTest, paclet:ref/VerificationTest])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Using the Testing Framework, paclet:tutorial/UsingTheTestingFramework])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Systematic Testing & Verification, paclet:guide/SystematicTestingAndVerification])}})}})