Open main menu

CDOT Wiki β

Changes

Bugzilla::Keyword Unit Tests

758 bytes added, 04:57, 18 October 2008
How to Run
== Overview ==
Bugzilla::Keyword - A Keyword that can be added to a bug.
Unit test for Bugzilla::Keyword based on Test::More framework. Included several object mockups
== Unit Test Cases ==
1. keyword_count() returns 0 when DB is empty
== Unit Test Cases ==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
6. keyword_count() returns 1
== Schedule Scoping ==
  Will be finished within two days
== References ==
Relevant Bugs:
None[https://bugzilla.mozilla.org/show_bug.cgi?id=412083 Bugzilla Unit Tests Using Test::More]
API Documentation:
[http://geosoft.no/development/unittesting.html Unit Tests Guidelines]
 
[http://en.wikipedia.org/wiki/Unit_testing Unit Testing (Wikipedia)]
 
== How to Install ==
 
Copy Keyword.t and Mockups.pm (both are attached to [https://bugzilla.mozilla.org/show_bug.cgi?id=412083 Bugzilla Unit Tests Using Test::More bug]) to t/unit directory
 
== How to Run ==
 
Run Keyword.t
 
 
[[Image:keyword_t.gif]]
1
edit