Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-17083

testsome target doesn't work with wildcards

    XMLWordPrintableJSON

Details

    Description

      Running ant test -Dtest.name=PasswordObfuscator*Test runs the test correctly. But ant testsome -Dtest.name=PasswordObfuscator*Test will make it fail like

      [junit-timeout] Testsuite: org.apache.cassandra.cql3.PasswordObfuscatorTest
      [junit-timeout] Testsuite: org.apache.cassandra.cql3.PasswordObfuscatorTest Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec
      [junit-timeout] 
      [junit-timeout] Testsuite: PasswordObfuscator*Test
      [junit-timeout] Testsuite: PasswordObfuscator*Test Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
      [junit-timeout] 
      [junit-timeout] Null Test: 	Caused an ERROR
      [junit-timeout] PasswordObfuscator*Test
      [junit-timeout] java.lang.ClassNotFoundException: PasswordObfuscator*Test
      [junit-timeout] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      [junit-timeout] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
      [junit-timeout] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
      [junit-timeout] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
      [junit-timeout] 	at java.lang.Class.forName0(Native Method)
      [junit-timeout] 	at java.lang.Class.forName(Class.java:348)
      [junit-timeout] 
      [junit-timeout] 
      [junit-timeout] Test PasswordObfuscator*Test FAILED
      

      We should fix testsome as this is a useful feature for 'families' of tests such as ViewComplex*Test

      Attachments

        Issue Links

          Activity

            People

              bernardo.botella Bernardo Botella Corbi
              bereng Berenguer Blasi
              Berenguer Blasi, Bernardo Botella Corbi
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m