View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001922 | Slicer4 | Core: Scripting (Wrapping, Python) | public | 2012-04-20 06:53 | 2012-08-20 09:57 |
Reporter | pieper | Assigned To | pieper | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | |||||
Target Version | Slicer 4.2.0 | Fixed in Version | Slicer 4.2.0 | ||
Summary | 0001922: add a self-testing module | ||||
Description | We need a way for developers to provide tests that users can run as self-tests of the installed application in order to confirm expected behavior. Currently, slicer tests are run on build machines, typically from a build tree and not an install tree; while critical, these tests do not really capture the end-user's situation and therefor important aspects of our software are completely untested except by our users (who understandably are disappointed when features don't work as advertised). For example, bug 0001822, appears to only happen on mac release builds and requires many steps to reproduce. Being able to consistently reproduce this situation will be important in finding a solution. | ||||
Additional Information | To partially address this issue, I plan to implement a Testing->SelfTests module with a plugin architecture so that module writers can define tests that can be run inside of a slicer install tree. These tests should also be invokable from the command line, meaning they can be seamlessly exposed to ctest so they run on the nightly dashboard. There are a number of features that could be added to this:
other suggestions are welcome, but for now all we really need is a simple way to users to invoke tests and find out the results. This work should be integrated with the Qt testing framework project when it becomes available. | ||||
Tags | No tags attached. | ||||
This module should serve as a BIST: |
|
Module is being developed here: |
|
This will be part of Project week: http://www.na-mic.org/Wiki/index.php/2012_Summer_Project_Week:SelfTesting |
|
One thing to consider is a mode in which the module could be invoked outside of the running slicer so that it could run tests and report on tests that lead to crashes. One option would be for to launch child slicer processes to run tests and check the return code of these. I'm not going to put this on the short term feature list but may want to add it in the future. |
|
A discussion of using CTest/midas for data management of build-time and run-time tests is copied below for reference. Jean-Christophe Fillion-Robin jchris.fillionr@kitware.com 4:30 PM (17 minutes ago) to pieper, James, Julien, Patrick We meet with Patrick. Here are the conclusions: 1) Our intern Chris will probably be working with me to:
Thanks On Mon, May 21, 2012 at 3:17 PM, Steve Pieper <pieper@ibility.net> wrote:
-- |
|
A self-test module and an example test that pulls data from midas has been added: http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20779 |
|
Feature has been added, now it can be used and refined. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-04-20 06:53 | pieper | New Issue | |
2012-04-20 06:53 | pieper | Status | new => assigned |
2012-04-20 06:53 | pieper | Assigned To | => pieper |
2012-04-20 06:57 | pieper | Note Added: 0004052 | |
2012-04-20 07:29 | pieper | Note Added: 0004053 | |
2012-05-01 09:50 | pieper | Note Added: 0004117 | |
2012-05-01 09:51 | pieper | Note Added: 0004118 | |
2012-05-01 10:16 | pieper | Relationship added | related to 0001822 |
2012-05-21 12:49 | pieper | Note Added: 0004536 | |
2012-08-13 10:25 | pieper | Target Version | => Slicer 4.2.0 - October 1st 2012 |
2012-08-20 09:56 | pieper | Note Added: 0005594 | |
2012-08-20 09:57 | pieper | Note Added: 0005596 | |
2012-08-20 09:57 | pieper | Status | assigned => closed |
2012-08-20 09:57 | pieper | Resolution | open => fixed |
2012-08-20 09:57 | pieper | Fixed in Version | => Slicer 4.2.0 - Feature freeze Sept 1st 2012 |