title: Difference between test and check tasks in Gradle
body: <p>My <code>build.gradle</code> is as follows:</p>
  <pre class="lang-groovy prettyprint-override"><code>group 'groupName'
  version 'version'
  
  apply plugin: 'java'
  apply plugin: 'idea'
  
  sourceCompatibility = 1.8
  
  repositories {
      . . .
  }
  
  dependencies {
      . . .
      testCompile group: 'junit', name: 'junit', version: '4.12'
  }
  </code></pre>
  <p>In Gradle when doing <code>./gradlew tasks</code> I receive</p>
  <pre class="lang-none prettyprint-override"><code>Verification tasks
  ------------------
  check - Runs all checks.
  test - Runs the unit tests.
  </code></pre>
  <p>What is the difference between these two tasks? The output of <code>./gradlew check</code> is identical to <code>./gradlew test</code>.</p>
  <pre class="lang-none prettyprint-override"><code>andrewgazelka $ ./gradlew check
  
  &gt; Task :test FAILED
  
  MathTest &gt; testX FAILED
      java.lang.AssertionError at MathTest.java:40
  
  MathTest &gt; testY FAILED
      java.lang.AssertionError at MathTest.java:55
  
  SimulatorTest &gt; testZ FAILED
      java.lang.IllegalArgumentException at SimulatorTest.java:71
  
  30 tests completed, 3 failed
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':test'.
  &gt; There were failing tests. See the report at: file:///Users/andrewgazelka/IdeaProjects/RobotCode2018/build/reports/tests/test/index.html
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 2s
  3 actionable tasks: 3 executed
  andrewgazelka $ ./gradlew test
  
  &gt; Task :test FAILED
  
  MathTest &gt; testX FAILED
      java.lang.AssertionError at MathTest.java:40
  
  MathTest &gt; testY FAILED
      java.lang.AssertionError at MathTest.java:55
  
  SimulatorTest &gt; testZ FAILED
      java.lang.IllegalArgumentException at SimulatorTest.java:71
  
  30 tests completed, 3 failed
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':test'.
  &gt; There were failing tests. See the report at: file:///Users/andrewgazelka/IdeaProjects/RobotCode2018/build/reports/tests/test/index.html
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 1s
  3 actionable tasks: 1 executed, 2 up-to-date
  </code></pre>
  <p>From what I understand, <code>./gradle test</code> ⊆ <code>./gradle check</code>. Is this correct?</p>