Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes What is the difference between 'smoke test' and 'unit test'? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "What is the difference between Watch "What is the difference between New topic
Author

What is the difference between 'smoke test' and 'unit test'?

Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 59
Seems 'unit test' from java world and 'smoke test' from Microsoft? They are meaningfully the same?
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 3795
    
    1

Unit tests are called unit tests by pretty much everyone. Smoke tests appears to be different - they are a selection of the tests (which may include unit tests) that quickly test critical functionality.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

Thomas Chang wrote:Seems 'unit test' from java world and 'smoke test' from Microsoft? They are meaningfully the same?

No, "smoke test" is not terminology that Microsoft invented, and "unit test" and "smoke test" have different meanings.

A unit test is a test to test some part (a "unit" - which might be a method, a class, a module or something else like that) of a larger system. The goal of the unit test is to test the specific unit independent of the whole system into which it fits. JUnit is the most well-known library for creating and running unit tests in Java, and is supported by all the major IDEs.

A smoke test is a quick test to see if the major functionality of some software works. This comes from the hardware world: imagine that you've just soldered together some new electronic device, then you switch it on and if it does *poof* and you see smoke, then the smoke test failed... A smoke test is not specifically meant to test a single unit or module, but the system as a whole.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Once the smoke escapes from the computer, it stops working. Must... Keep... Smoke... Inside...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56215
    
  13



[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
D. Ogranos
Ranch Hand

Joined: Feb 02, 2009
Posts: 213
Whoa! Steam-powered PCs!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
About 3½ years ago I had a PC which produced clouds of smoke like that. It took about two weeks to repair
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

It would probably have taken less than a week to replace


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
. . . but the work on the hard drive had to be retrieved.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Do you need the rest of the PC for that? All you need to do is put the hard drive into a different PC. Well, unless the hard drive or its internal controller is fried.
Hunter McMillen
Ranch Hand

Joined: Mar 13, 2009
Posts: 490

Or a enclosure if you have one lying around.


"If the facts don't fit the theory, get new facts" --Albert Einstein
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
Its controller was fried; we ended up borrowing a controller from another hard drive of the same make.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What is the difference between 'smoke test' and 'unit test'?
 
Similar Threads
Batch Load Unit test ?
Passed SCBCD 88%
WA #2 ..... word association
Exception in thread "main" org.springframework.beans.factory.BeanCreationException
Smoke test