| 348 | == Test Coverage == |
| 349 | '''Description''' |
| 350 | This video shows how to analyse the test coverage of a package. The test |
| 351 | coverage measures how many percent of a package's methods are called in its |
| 352 | tests. |
| 353 | |
| 354 | '''Video''' |
| 355 | [[Toggle(begin)]] |
| 356 | [[Video(mp4=attachment:test-coverage.mp4, poster=attachment:test-coverage.jpg,preload=none)]] |
| 357 | [[Toggle(end)]][[attachment:test-coverage.mp4 Download]] |
| 358 | |
| 359 | '''Preview''' |
| 360 | |
| 361 | [[Image(test-coverage.jpg, 300)]] |
| 362 | |
| 363 | === Brief summary === |
| 364 | Make sure a package exists which is named like the class category before a |
| 365 | dash. For example the class category is called "HowTo-SUnit" the package has to |
| 366 | be named "HowTo". You can add a package in the "Monticello Browser" which can |
| 367 | be found in "Tools". |
| 368 | |
| 369 | To run a test coverage analysis open the test runner, click "Run Coverage" and select the package. |
| 370 | After all tests are run you see a list of methods which aren't covered and the ratio of covered methods and all package's methods. |
| 371 | |