intellij-dependency-analytics icon indicating copy to clipboard operation
intellij-dependency-analytics copied to clipboard

test: Added framework for UI integration tests

Open richardkocian opened this issue 2 years ago • 1 comments

Added basic dummy test, which will create and open new instance of IntelliJ, import the devfile-sample-java-springboot-basic project and then it will run one basic test case which will only check that the pom.xml file is present in the project files.

Steps to run UI integration tests:

  1. Clone my forked repo: git clone -b ui-tests https://github.com/richard0202/intellij-dependency-analytics.git
  2. Navigate to the cloned folder: cd intellij-dependency-analytics
  3. Execute integration tests: ./gradlew integrationTest
  4. It should fail, but it will create folder build inside folder intellij-dependency-analytics
  5. Copy crda-java-api-0.0.1-SNAPSHOT.jar into the build folder (crda-java-api-0.0.1-SNAPSHOT.jar can be found inside https://github.com/redhat-developer/intellij-dependency-analytics/releases/tag/early-access zip)
  6. Execute integration tests again: ./gradlew integrationTest

Keep in mind that running these tests will permanently delete all folders inside ~/IdeaProjects/

New test cases can be added inside the BaseUITest.java or in new class (in this case do not forget to extend that class with AbstractBaseTest class).

richardkocian avatar Aug 01 '23 14:08 richardkocian

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Aug 01 '23 14:08 sonarqubecloud[bot]