Results 1 to 3 of 3
  1. #1
    dmitry is offline Member
    Join Date
    Sep 2015
    Rep Power

    Default Maven always run test

    hi. My maven project have many childs , i need for artifacts of some oh this child. But i always received error when run " mvn clean install -DskipTests=true ". Why it run test? please not suggest for me fix junit test, i went to run it since there. That error i'm received

    Java Code:
    Results :
    Failed tests:
      ConfigurationManagerFactoryTest.test_Constructor:49 expected null, but was:<com.aciworldwide.aps.adf.common.configmgr.
      DateTimeUtilsTest.testVerifyTime_RangeSpecifiedInDST_StartTimeGTEndTime:249 verifyTimeInRange returned true for Fri Ju
    n 21 06:40:00 MSK 2013
      DateTimeUtilsTest.testVerifyTimeInRange_RangeNotInDST:211 verifyTimeInRange returned false for Sat Feb 23 05:10:00 MSK
    Tests run: 269, Failures: 3, Errors: 0, Skipped: 1
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project core-f
    w-common-impl: There are test failures.

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power

    Default Re: Maven always run test

    Are you sure that you run the command you stated above? -DskipTests=true should skip the test execution.
    Last edited by wsaryada; 09-14-2015 at 11:14 AM. Reason: update

  3. #3
    codereq is offline Member
    Join Date
    Mar 2013
    Rep Power

    Default Re: Maven always run test

    Check the profile in maven pom.xml. The unit tests may be executing in some other profile. Paste the pom.xml to help us understand the issue

Similar Threads

  1. Maven ignoring new test files
    By Nissem in forum Apache Maven
    Replies: 2
    Last Post: 09-05-2015, 09:14 AM
  2. Replies: 0
    Last Post: 04-11-2014, 02:15 PM
  3. Replies: 0
    Last Post: 12-30-2013, 08:01 AM
  4. Replies: 0
    Last Post: 12-17-2012, 02:32 PM
  5. Error with a JUnit test using maven surefire plugin
    By masijade in forum Apache Maven
    Replies: 0
    Last Post: 03-16-2012, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts