Changes between Version 4 and Version 5 of UnitTests
- Timestamp:
- Apr 30, 2010 2:09:04 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UnitTests
v4 v5 49 49 GSASIIspc.test3() 50 50 }}} 51 duplicates that in the previous section. 51 duplicates that in the previous section. The contents of {{{unit_tests.py}}} will be run automatically if nosetests is run without arguments. To allow comprehensive testing without nosetests, adding the tests also in a section that is run when the unit_tests.py file is invoked rather than imported makes this too possible: 52 53 {{{ 54 if __name__ == '__main__': 55 test_GSASIIspc() 56 test_GSASIIspc1() 57 test_GSASIIspc2() 58 test_GSASIIspc3() 59 print "OK" 60 }}}