Skip to content

antonkupreychik/leon

Repository files navigation

Leon test task

How to run application

  1. Clone repository, go to root directory
  2. Run sh run.sh in root directory

sh run.sh will build the application and run it in a docker container.

  1. Open http://localhost:8088/ in browser
  2. Enter the phone number and click "Submit" button

img.png

  1. You will see the result. If the phone number is valid, you will see the country name. If the phone number is invalid, you will see the error message.

Example of a valid phone number:

img.png

Example of an invalid phone number:

img.png

How to run tests

  1. Clone repository, go to root directory
  2. Run ./gradlew clean build test in root directory
  3. You will see the test results in the console

img.png

  1. If you want to see the test report, run ./gradlew clean test jacocoTestReport in root directory
  2. You will see the test report in build/reports/jacoco/test/html/index.html
  3. Open index.html in browser
  4. You will see the test report

Example of a test report:

img.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages