नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
| Property | Value |
|---|---|
| Rule ID | MSTEST0043 |
| Title | Use retry attribute on test method |
| Category | Usage |
| Fix is breaking or non-breaking | Non-breaking |
| Enabled by default | Yes |
| Default severity | Warning (escalated to Error when setting MSTestAnalysisMode to Recommended or All) |
| Introduced in version | 3.9.0 |
| Is there a code fix | No |
Cause
A method has an attribute that derives from RetryBaseAttribute and does not have an attribute that derives from TestMethodAttribute.
Rule description
RetryBaseAttribute only applies to test methods.
How to fix violations
Add TestMethodAttribute to the method, or remove the RetryBaseAttribute.
When to suppress warnings
Do not suppress a warning from this rule.
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहां आप मुद्दों को बना सकते हैं और उनकी समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं। अधिक जानकारी के लिए, हमारी योगदानकर्ता मार्गदर्शिका देखें।