| Anonymous | Login | Signup for a new account | 2013-05-21 16:10 EDT |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001963 | [Slicer4] Core: Base Code | minor | have not tried | 2012-05-01 18:27 | 2012-08-21 14:01 | ||||
| Reporter | jcfr | View Status | public | ||||||
| Assigned To | jcfr | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | |||||||
| Summary | 0001963: Add unit test to vtkArchive zip/unzip methods | ||||||||
| Description |
After looking at the existing test for "extract_tar", it also resumes this one should also be updated. See 0001962 for details. In a nutshell, a list of extracted file should be compare against a list of expected files. |
||||||||
| Additional Information | |||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
|
|
|||||||||
Notes |
|
|
(0004489) pieper (administrator) 2012-05-18 10:37 |
http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20010 [^] |
|
(0004493) jcfr (administrator) 2012-05-18 11:55 |
Since the file expected in the archive are hardcoded in the function "valideFile", the name of the archive to extract should probably be hardcoded. Only the data directory containing the archives should be passed as a parameter, probably using the -D parameter. The verbosity of the test should be kept at his minimum, if everything works fine.. no output is expected. That said, it's still possible to pass an option for extra verbosity. I would recommend to display the error using the format: std::cerr << "Line " << __LINE__ << " - Something went wrong" << std::endl; Comments like the following should be removed: // VTK includes // STD includes The usual "function block comment separator line" should be used. File "vtkMRMLCoreTestingMacros.h" shouldn't be included here. The two cases: extract and create archive should be split into to function returning a boolean. |
|
(0005443) pieper (administrator) 2012-07-30 08:37 |
Update the test as needed. |
| Mantis 1.1.4[^] Copyright © 2000 - 2008 Mantis Group |