Skip to end of metadata
Go to start of metadata

Purpose

The purpose of this page is to outline test-cases that are based on a knowledge about the gradle integration internals. I.e. these tests are a hint from development to the QA.

Table of contents

Gradle home settings refresh

  1. Perform successful import;
  2. Point gradle home to the old distribution (e.g. 1.0-milestone-3);
  3. Try to perform import;
    Expected: the import is unsuccessful
  4. Point gradle home to valid distribution;
  5. Try to perform import;
    Expected: the import is successful

Manual gradle process kill

  1. Perform import;
  2. Ensure that another process is started and its command line contains text 'GradleApiFacade';
  3. Kill that process;
  4. Try to perform import one more time;
    Expected: the import is successful

Linking a gradle project to the IJ project

  1. Perform 'import from gradle';
  2. Close the IDE;
  3. Go to the '$PROJECT_HOME/.idea/gradle.xml' and remove element with 'LINKED_PROJECT_FILE_PATH' there.
    Example:
    Before
    After
  4. Start the IDE;
  5. Open 'gradle' tool window;
    Expected: it should be possible to link gradle project from it

Synchronizing project structures

'Local' library dependencies

  1. Get synced gradle and intellij projects;
  2. Add two new library dependencies at the gradle side;
  3. Refresh gradle project structure view at the 'gradle' tool window;
    Expected: both dependencies are shown as 'gradle local'
  4. Manually configure one of those dependencies at intellij project;
  5. Refresh gradle project structure view at the 'gradle' tool window;
    Expected: the added dependency is shown as 'synced' now
  6. Remove the remaining 'gradle local' dependency from the gradle script;
  7. Refresh gradle project structure view at the 'gradle' tool window;
    Expected: 'gradle local' dependency node is removed
  8. Perform the same actions with intellij-local entries;

Library setup conflict

  1. Get synced gradle and intellij projects;
  2. Attach two new jars to the intellij library that has matched gradle library;
  3. Refresh gradle project structure view at the 'gradle' tool window;
    Expected: the library node is shown as 'conflict'
  4. Remove one of the newly added jars from the intellij library setup;
  5. Refresh gradle project structure view at the 'gradle' tool window;
    Expected: the library node is still shown as 'conflict'
  6. Remove the last of the newly added jars from the intellij library setup;
  7. Refresh gradle project structure view at the 'gradle' tool window;
    Expected: the library node is shown as 'synced' now
  • No labels