LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2013, 02:32 AM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 386

Rep: Reputation: 30
Unit test and Functional test


I am new to the software development and get confused between the unit test and functional test. To me, it looks the same. When writing a unit test, I would put in different input and compare output with an expected one. I was told to write a functional test. Not sure what might be different. Can anyone help?
 
Old 05-17-2013, 02:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by ufmale View Post
I am new to the software development and get confused between the unit test and functional test. To me, it looks the same. When writing a unit test, I would put in different input and compare output with an expected one. I was told to write a functional test. Not sure what might be different. Can anyone help?
Unit tests:
Unit tests are written from a programmer's perspective. They ensure that a particular method of a class successfully performs a set of specific tasks. Each test confirms that a method produces the expected output when given a known input.

Functional tests:
Functional tests are written from a user's perspective. These tests confirm that the system does what users are expecting it to.

(quotes are from: Unit Testing versus Functional Tests, do visit the link for more information)

Feed your favourite search-engine with the terms Unit Functional test, there's a ton of information to be found on-line about this subject.
 
Old 05-17-2013, 02:22 PM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
It depends who you ask I reckon.

I have been in the game for over 20 years and I still don't know (or care) what half the bloody jargon means.

One bit of advice is: do NOT be afraid to ask.
Don't keep silent if you don't understand something and pretend you do.
Ask for clarification from peers or boss or client, it doesn't make you look stupid.

You are new, you are not expected to know it all, but you can impress by asking good questions.

I'm off to light my pipe.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load test, boundary test & stress test for USB EHCI/xHCI driver rama_toshiba Linux - Kernel 5 02-29-2012 02:43 PM
YUI Test as batch unit test framework hjess Linux - Newbie 0 03-03-2009 07:08 PM
Unit Test Framework for C jf.argentino Programming 5 07-03-2008 01:02 PM
LXer: One programmer's unit test is another's integration test LXer Syndicated Linux News 0 07-29-2007 03:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration