मैं TestNG साथ अचूक लिए मेरे पोम में निम्नलिखित विन्यास को परिभाषित किया है में लिए खड़े करता है:क्या "डिफ़ॉल्ट परीक्षण" Maven-अचूक प्लगइन
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<skipTests>${skip-all-tests}</skipTests>
</configuration>
<executions>
<execution>
<id>unit-tests</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>${skip-unit-tests}</skip>
<groups>unit</groups>
<excludedGroups>integration</excludedGroups>
</configuration>
</execution>
<execution>
<id>integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>${skip-integration-tests}</skip>
<groups>integration</groups>
<excludedGroups>unit</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
लेकिन यह दो फांसी हमेशा से पहले कर रहे हैं लगता है एक "डिफ़ॉल्ट-परीक्षण" रन जो हर @test एनोटेटेड विधि को चलाने के लिए प्रतीत होता है (कम से कम मुझे ऐसा लगता है)।
--- maven-surefire-plugin:2.12:test (default-test) @ my-project
उदाहरण के लिए परियोजना पर "एमवीएन परीक्षण" चलाते हुए, दो परीक्षण निष्पादन होते हैं। "डिफ़ॉल्ट-परीक्षण" और "इकाई-परीक्षण"।
क्या कोई इसे मेरे लिए थोड़ा और समझा सकता है? क्या इसे अक्षम या नियंत्रित किया जा सकता है (कॉन्फ़िगर किया गया है कि क्या परीक्षण किया गया है और क्या नहीं)?
एमवीएन सहायता के माध्यम से अपने परिणामी पोम में एक नज़र डालें: प्रभावी-पोम। इसके अलावा ऐसी चीज को परिभाषित करने के लिए सबसे अच्छी बात यह है कि इसे प्लगइन में डाल दें प्रबंधन और आपको मैवेन-असफलता-प्लगइन द्वारा एकीकरण परीक्षण चलाया जाना चाहिए और मैवेन-सिक्योरफायर-प्लगइन के माध्यम से नहीं। – khmarbaise
धन्यवाद, जो पहले से ही मेरे लिए बहुत साफ हो गया है! यदि आप अपनी टिप्पणी को उत्तर फ़ॉर्म में डालते हैं तो मैं आपको क्रेडिट दूंगा। –