Advertisement
nsaunders

Untitled

Aug 2nd, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. /*
  2. * This file was generated by the Gradle 'init' task.
  3. *
  4. * This generated file contains a sample Java application project to get you started.
  5. * For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
  6. * User Manual available at https://docs.gradle.org/7.0.2/userguide/building_java_projects.html
  7. */
  8.  
  9. plugins {
  10. // Apply the application plugin to add support for building a CLI application in Java.
  11. id 'application'
  12. }
  13.  
  14. repositories {
  15. // Use Maven Central for resolving dependencies.
  16. mavenCentral()
  17. mavenLocal()
  18. jcenter()
  19. }
  20.  
  21. dependencies {
  22. // Use TestNG framework, also requires calling test.useTestNG() below
  23. //compile 'org.testng:testng:7.3.0'
  24. testImplementation 'org.testng:testng:7.3.0'
  25.  
  26. // This dependency is used by the application.
  27. implementation 'com.google.guava:guava:30.0-jre'
  28. }
  29.  
  30. application {
  31. // Define the main class for the application.
  32. mainClass = 'testng_gradle.App'
  33. }
  34.  
  35.  
  36.  
  37.  
  38. tasks.named('test') {
  39. useTestNG() {
  40. includeGroups 'smoke', 'sanity'
  41. excludeGroups 'regression'
  42. testLogging.showStandardStreams = true
  43. suiteXmlBuilder().suite(name: 'Sample Suite') {
  44. test(name : 'Sample Test') {
  45. classes('') {
  46. 'class'(name: 'testing_gradle.AppTest')
  47. }
  48. }
  49. }
  50.  
  51. }
  52. }
  53.  
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement