[ 
https://issues.apache.org/jira/browse/LUCENE-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13767400#comment-13767400
 ] 

Uwe Schindler commented on LUCENE-5210:
---------------------------------------

Hi,
to make tests easy there is antunit. I use this to test forbidden-apis. It is 
registered as a separate task in ANT and you write a build file that works as 
test. It can check inner tests and apply assertions on the output, file 
state,...

This would reduce the 2 simple tests to one build file that is executed as a 
subant task from the main build file. No Junit needed.

See as example: 
[https://code.google.com/p/forbidden-apis/source/browse/trunk#trunk%2Fsrc%2Ftest%2Fantunit]
It is called from here: 
[https://code.google.com/p/forbidden-apis/source/browse/trunk/build.xml?spec=svn207&r=207#346]

I can help with implementing this (unfortunately I am busy next week), it 
should be mostly copy/paste of the test setup in forbidden's build.xml and 
reuse some simple tests.
                
> Unit tests for LicenseCheckTask.
> --------------------------------
>
>                 Key: LUCENE-5210
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5210
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: general/build
>            Reporter: Mark Miller
>         Attachments: LUCENE-5210.patch, LUCENE-5210.patch
>
>
> While working on LUCENE-5209, I noticed the LicenseCheckTask is kind of a 
> second class citizen - excluded from UI src folder setup and with no units 
> tests. This was a little scary to me.
> I've started adding some units tests. So far I have mainly just done the 
> lifting of getting units tests to work as part of tools.
> I have added two super simple tests - really just the start - but something 
> to build on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to