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.

You are encouraged to add your additional test cases to the test suite.
If you want your test to be part of the regression tests (used to validate new releases) the test needs to fit the format of the existing tests.
Any other test format is welcome as well. You can describe the test on the wiki and attach any required files.

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 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.
  runtest.py --regression
     Run all tests, except the ones not suitable in a regression test.
     See the code of the script to see which tests are excluded.

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

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