Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2451

Unit test testcolourbyannotscores passes when run from Eclipse but not CLI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.2
    • Fix Version/s: None
    • Component/s: Test suite
    • Labels:
      None

      Description

      testColourByAnnotScores passes when run from Eclipse, but fails when run as part of the test suite via ant i.e. via 'ant testng' in the main jalview directory. Output:
      [testng] FAILED: testColourByAnnotScores
         [testng] java.lang.AssertionError: Failed to import new project expected object to not be null
         [testng] at org.testng.Assert.fail(Assert.java:94)
         [testng] at org.testng.Assert.assertNotNull(Assert.java:406)
         [testng] at jalview.io.Jalview2xmlTests.testColourByAnnotScores(Jalview2xmlTests.java:187)
         [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [testng] at java.lang.reflect.Method.invoke(Method.java:498)
         [testng] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
         [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:648)
         [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:834)
         [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1142)
         [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
         [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
         [testng] at org.testng.TestRunner.privateRun(TestRunner.java:771)
         [testng] at org.testng.TestRunner.run(TestRunner.java:621)
         [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
         [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
         [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
         [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:259)
         [testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
         [testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
         [testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1176)
         [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:1101)
         [testng] at org.testng.TestNG.run(TestNG.java:1009)
         [testng] at org.testng.TestNG.privateMain(TestNG.java:1316)
         [testng] at org.testng.TestNG.main(TestNG.java:1285)

        Attachments

          Activity

            People

            Assignee:
            jprocter Jim Procter
            Reporter:
            kmourao Kira MourĂ£o
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: