Skip to content

Conversation

@richardkocian
Copy link

@richardkocian richardkocian commented Aug 1, 2023

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).

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 1, 2023

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

@ruromero ruromero force-pushed the main branch 3 times, most recently from bb34650 to 6a6691e Compare September 1, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant