intellij-dependency-analytics
intellij-dependency-analytics copied to clipboard
test: Added framework for UI integration tests
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:
- Clone my forked repo: git clone -b ui-tests https://github.com/richard0202/intellij-dependency-analytics.git
- Navigate to the cloned folder: cd intellij-dependency-analytics
- Execute integration tests: ./gradlew integrationTest
- It should fail, but it will create folder build inside folder intellij-dependency-analytics
- 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)
- 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).







