Changes between Version 4 and Version 5 of UnitTests


Ignore:
Timestamp:
Apr 30, 2010 2:09:04 PM (12 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UnitTests

    v4 v5  
    4949    GSASIIspc.test3()
    5050}}}
    51 duplicates that in the previous section.
     51duplicates 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{{{
     54if __name__ == '__main__':
     55    test_GSASIIspc()
     56    test_GSASIIspc1()
     57    test_GSASIIspc2()
     58    test_GSASIIspc3()
     59    print "OK"
     60}}}