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

Mark Miller commented on SOLR-12921:
------------------------------------

bq. There's all shades of gray i

Everything has shades of gray, can't let that bog you down.

A unit test is a test that tests a particular piece of code, is very fast, and 
often involves mocks.

An integration test spins up the whole system and tests something by running 
everything pretty much for real.

Unit tests should be very easy to debug. Integration tests can be very 
difficult to debug.

Both are valuable, both should be added for new features.

The problem is that there is a mix of people not understanding that or being to 
lazy to care.

We need to introduce structure that teaches people how you write proper tests.

> Separate Solr unit tests and integration tests.
> -----------------------------------------------
>
>                 Key: SOLR-12921
>                 URL: https://issues.apache.org/jira/browse/SOLR-12921
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Tests
>            Reporter: Mark Miller
>            Priority: Major
>
> We basically just have "tests" now. We should have separate locations for 
> unit and integration tests and new work should have a good reason to not 
> include both.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to