Difference between revisions of "Bugzilla::Keyword Unit Tests"

From CDOT Wiki
Jump to: navigation, search
(Unit Test Cases)
(Unit Test Cases)
Line 8: Line 8:
 
== Unit Test Cases ==
 
== Unit Test Cases ==
 
1. keyword_count() returns 0 when DB is empty
 
1. keyword_count() returns 0 when DB is empty
 +
 
2. keyword can be created
 
2. keyword can be created
 +
 
3. bug_count() returns correct value
 
3. bug_count() returns correct value
 +
 
4. get_all_with_bug_count() returns correct list of keywords
 
4. get_all_with_bug_count() returns correct list of keywords
 +
 
5. Duplicate keyword cannot be created
 
5. Duplicate keyword cannot be created
  

Revision as of 23:13, 11 October 2008

Bugzilla::Keyword Unit Tests


Overview

Bugzilla::Keyword - A Keyword that can be added to a bug.

Unit Test Cases

1. keyword_count() returns 0 when DB is empty

2. keyword can be created

3. bug_count() returns correct value

4. get_all_with_bug_count() returns correct list of keywords

5. Duplicate keyword cannot be created

Schedule Scoping

Will be finished within two days

References

Relevant Bugs:

None

API Documentation:

Bugzilla::Keyword API

Unit Testing Documentation:

Unit Tests Guidelines Unit Testing (Wikipedia)


How to Install

How to Run