updated surefire plugin to run testNG tests
This commit is contained in:
		
							parent
							
								
									290e0894ff
								
							
						
					
					
						commit
						610baa40bf
					
				@ -30,5 +30,9 @@ As result, in REPOSITORY column, next images should be present:
 | 
			
		||||
 | 
			
		||||
        mvn clean install -DblackBoxTests.skip=false -DblackBoxTests.hybridMode=true
 | 
			
		||||
 | 
			
		||||
To run the black box tests with using local env run tests in the [msa/black-box-tests](../black-box-tests) directory with runLocal property:
 | 
			
		||||
 | 
			
		||||
        mvn clean install -DblackBoxTests.skip=false -DrunLocal=true
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -167,11 +167,18 @@
 | 
			
		||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
                <artifactId>maven-surefire-plugin</artifactId>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <includes>
 | 
			
		||||
                        <include>**/*TestSuite.java</include>
 | 
			
		||||
                    </includes>
 | 
			
		||||
                    <suiteXmlFiles>
 | 
			
		||||
                        <suiteXmlFile>src/test/resources/testNG.xml</suiteXmlFile>
 | 
			
		||||
                    </suiteXmlFiles>
 | 
			
		||||
                    <skipTests>${blackBoxTests.skip}</skipTests>
 | 
			
		||||
                </configuration>
 | 
			
		||||
                <dependencies>
 | 
			
		||||
                    <dependency>
 | 
			
		||||
                        <groupId>org.apache.maven.surefire</groupId>
 | 
			
		||||
                        <artifactId>surefire-testng</artifactId>
 | 
			
		||||
                        <version>${surefire.version}</version>
 | 
			
		||||
                    </dependency>
 | 
			
		||||
                </dependencies>
 | 
			
		||||
            </plugin>
 | 
			
		||||
        </plugins>
 | 
			
		||||
    </build>
 | 
			
		||||
 | 
			
		||||
@ -27,7 +27,6 @@ import io.netty.buffer.Unpooled;
 | 
			
		||||
import io.netty.handler.codec.mqtt.MqttQoS;
 | 
			
		||||
import lombok.Data;
 | 
			
		||||
import lombok.extern.slf4j.Slf4j;
 | 
			
		||||
import org.junit.Assert;
 | 
			
		||||
import org.springframework.http.HttpStatus;
 | 
			
		||||
import org.springframework.http.ResponseEntity;
 | 
			
		||||
import org.testcontainers.shaded.org.apache.commons.lang3.RandomStringUtils;
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										10
									
								
								msa/black-box-tests/src/test/resources/testNG.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								msa/black-box-tests/src/test/resources/testNG.xml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
<?xml version="1.0" encoding="ISO-8859-1"?>
 | 
			
		||||
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
 | 
			
		||||
 | 
			
		||||
<suite name="Black-box tests">
 | 
			
		||||
    <test verbose="2" name="Connectivity tests" preserve-order="false">
 | 
			
		||||
        <packages>
 | 
			
		||||
            <package name="org.thingsboard.server.msa.connectivity" />
 | 
			
		||||
        </packages>
 | 
			
		||||
    </test>
 | 
			
		||||
</suite>
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user