avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Boudnik (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-26) Converting JUnit tests into TestNG controlled environment
Date Wed, 13 May 2009 04:12:45 GMT

     [ https://issues.apache.org/jira/browse/AVRO-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Konstantin Boudnik updated AVRO-26:
-----------------------------------

    Attachment: AVRO-26.patch.5

This patch introduces a solution for JUnit like plain test reporting output. In order to use
it one needs to modify existing listeners line of build.xml to 
  listeners="org.apache.avro.MyOutputInterceptor, org.apache.avro.SuiteInterceptor"

As the result, testng runs will produce something like this (although, properly aligned)

   [testng] org.apache.avro.TestSchema.testString                                Pass (  
 19 ms)
   [testng] org.apache.avro.TestSchema.testLong                                  Pass (  
  4 ms)
   [testng] org.apache.avro.TestSchema.testUnion                                 Pass (  
 10 ms)
   [testng] org.apache.avro.TestSchema.testArray                                 Pass (  
 11 ms)
   [testng] org.apache.avro.TestSchema.testNull                                  Pass (  
  1 ms)
   [testng] org.apache.avro.TestSchema.testLisp                                  Pass (  
 30 ms)
   [testng] org.apache.avro.TestSchema.testRecursive                             Pass (  
 75 ms)
   [testng] org.apache.avro.TestSchema.testRecord                                Pass (  
  5 ms)
   [testng] org.apache.avro.TestSchema.testFloat                                 Pass (  
  2 ms)
   [testng] org.apache.avro.TestSchema.testInt                                   Pass (  
  1 ms)
   [testng] org.apache.avro.TestSchema.testDouble                                Pass (  
  3 ms)
   [testng] org.apache.avro.TestSchema.testMap                                   Pass (  
 16 ms)
   [testng] org.apache.avro.TestSchema.testBytes                                 Pass (  
  3 ms)
   [testng] org.apache.avro.TestSchema.testBoolean                               Pass (  
  2 ms)
   [testng] org.apache.avro.io.TestValueReader.testEOFHandling                   Pass (  
  1 ms)
   [testng] AvroTestNG
   [testng] Total tests run: passed 34; failed 0; skipped 0 in 1 s.


> Converting JUnit tests into TestNG controlled environment
> ---------------------------------------------------------
>
>                 Key: AVRO-26
>                 URL: https://issues.apache.org/jira/browse/AVRO-26
>             Project: Avro
>          Issue Type: Test
>          Components: java, python
>            Reporter: Konstantin Boudnik
>            Assignee: Konstantin Boudnik
>         Attachments: AVRO-26.patch.1, AVRO-26.patch.2, AVRO-26.patch.3, AVRO-26.patch.4,
AVRO-26.patch.5, AVRO-26.sh, testng-5.9-jdk15.jar
>
>
> TestNG is a powerful test harness, which provides a lot of useful features like parallel
test execution, test parametrization, and such.
> Avro uses JUnit environment instead which is more rigid and less efficient.
> I'd suggest to convert Avro's Junit based test infrastructure into TestNG controller
environment, which will allow to achieve higher level of test execution control in the long
run

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message