Giter VIP home page Giter VIP logo

jdi-dark-junit-template's Introduction

Codacy Badge

JDI Dark JUnit Test Template

For run new REST API test automation just download and open this project Powered by JDI Dark

Documentation

Can be found here

Instruction:

  1. Download template and unpack in appropriate folder

  2. Open project in IDE (for example IntelliJIdea) by selecting pom.xml or build.gradle

  3. For running demo test just use "mvn clean install" command for maven or "gradlew clean build" for Gradle or run via IDE by click on "example" folder in src/test and select "Run tests" https://pix.my/KN34uk

  4. Logs: Observe test run results in Console log https://pix.my/SXy52C

  5. Reporting: After running tests run allure:serve in maven plugins https://pix.my/meAto8 or allureServe in gradle task https://pix.my/6FXX7l

  6. Use as template for your project:

  • just remove all content from src/main/.../example folder, add your package you Service Objects
  • replace tests in src/test/.../example folder with your tests
  1. For running parameterized builds (e.g. in CI/CD tools) you can use profiles:
  • Gradle:
    gradlew clean build -PBUILD_PROFILE=name of your .properties file placed in src/test/resources
    or
    gradlew clean build -DBUILD_PROFILE=name of your .properties file placed in src/test/resources
    or
    EXPORT BUILD_PROFILE=name of your .properties file placed in src/test/resources && gradlew clean build
  • Maven:
    mvn clean install -DBUILD_PROFILE=name of your .properties file placed in src/test/resources
    or
    EXPORT BUILD_PROFILE=name of your .properties file placed in src/test/resources && mvn clean install

jdi-dark-junit-template's People

Contributors

hronosf avatar jackydnb avatar n-ton4 avatar pnatashap avatar tjrbrom avatar vitaly-dukhov avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jdi-dark-junit-template's Issues

Unable to run tests with maven due to missing TestEngine implementation in the classpath

Steps to reproduce:

  1. Copy-paste POM file to new project/directory
  2. Add sample JUnit test
  3. Invoke test run with command:
    mvn clean test

Actual results:
Test run failed to start due to error:
[ERROR] There was an error in the forked process [ERROR] org.junit.platform.commons.PreconditionViolationException: Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath

Possible workaround:

  1. Add 'junit-jupiter-engine' depenendecy to POM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.