Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.59 KB

File metadata and controls

40 lines (31 loc) · 1.59 KB

teste-software

Project to explorer tests with: TestNG(on testng branch) or JUnit(on junit branch) , Mockito, REST Assured, Cucumber, Selenium Webdriver and JMeter.

Docker

  • JDK 17
  • port 8080
  • to build the image: docker build -t teste-software . (or put whatever name you want instead of teste-software)
  • to run: docker run -p 8080:8080 teste-software (or the name of the image you gave on build)

Requirements

  • Maven
  • JDK 17+
  • Spring Boot 2.6.15+

Structure

This project uses some frameworks such as Spring Boot(thymeleaf, bootstrap) and Lombok, in case you come to use an IDE that has plugins to them, it's recommended that you install it.

For IntelijIDEA:

  1. Enable annotation processing:
    1. Settings->Compiler->Annotation Processors: "Enable annotation processing"
  2. Install plugins to Spring Boot and Lombok(via Marketplace)
  3. Restart IDEA and enjoy it.

Coverage

It's used Jacoco to apply the expected coverage in the code. To apply the expected coverage ratio just execute: mvn clean verify and check the report on /target/jacoco-report. In case the coverage ratio is below expectations, it'll get a failure, and you will see where the violation happened.

Coverage violations

Login:

  • The credentias are inside security.acesss.properties change as you wish.

Português