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