Main > Reference Manual > Unit tests

These pages document the test suite available in the 'test' subdirectoy. The tests can be categorized in the following functional categories:

  • Unit tests, which verify the behavior specific parts of the code.
  • Performance tests, which focus on the performance (memory and/or cpu-time).
  • Samples, which demonstrate the real-life usage of the tool.

The test suite is run by the runtest.py script in the test subdirectory. You need to have Python installed on your machine to run the test suite.
Usage:

  runtest.py: 
     Run all tests
  runtest.py --exclude not_this_test:
     Run all tests, except the ones you choose to skip
  runtest.py --vcc: 
     Run all tests on Windows
  runtest.py A B: 
     Run the tests A and B
  runtest.py --debug A: 
     Run the test A, verbosely showing its output
  runtest.py --help:
     Print information on the script and its options

The tests described here only test the core library.
A seperate test suite exists for the Django user interface.

  1. TestBufferProcure1
  2. TestCallback
  3. TestCluster
  4. TestConstraintsCombined1
  5. TestConstraintsCombined2
  6. TestConstraintsLeadtime1
  7. TestConstraintsMaterial1
  8. TestConstraintsMaterial2
  9. TestConstraintsMaterial3
  10. TestConstraintsMaterial4
  11. TestConstraintsResource1
  12. TestConstraintsResource2
  13. TestConstraintsResource3
  14. TestConstraintsResource4
  15. TestConstraintsResource5
  16. TestDatetime
  17. TestDeletion
  18. Test Demand Policy
  19. TestFlowEffective
  20. TestFlowAlternate1
  21. TestFlowAlternate2
  22. TestForecast1
  23. TestForecast2
  24. TestForecast3
  25. TestForecast4
  26. TestForecast5
  27. TestForecast6
  28. TestJobshop
  29. TestLoadAlternate
  30. TestLoadEffective
  31. TestLPSolver1
  32. TestMultithreading
  33. TestName
  34. TestOperationAlternate
  35. TestOperationAvailable
  36. TestOperationEffective
  37. TestOperationPreOp
  38. TestOperationRouting
  39. TestPegging
  40. TestPython1
  41. TestPython2
  42. TestPython3
  43. TestProblems
  44. TestSafetyStock
  45. TestSampleModule
  46. TestScalability1
  47. TestScalability2
  48. TestScalability3
  49. TestSetup1
  50. TestSetup2
  51. TestXML
  52. TestXMLRemote