Unit tests

Main > frePPLe 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.
Example usage:

  runtest.py: 
     Run all tests
  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. TestCallback
  2. TestCluster
  3. TestCommand1
  4. TestCommand2
  5. TestConstraintsLeadtime1
  6. TestConstraintsMaterial1
  7. TestConstraintsMaterial2
  8. TestConstraintsMaterial3
  9. TestConstraintsResource1
  10. TestConstraintsResource2
  11. TestConstraintsResource3
  12. TestConstraintsResource4
  13. TestConstraintsResource5
  14. TestCSV
  15. TestDatetime
  16. TestDeletion
  17. Test Demand Policy
  18. TestFlowEffective
  19. TestForecast1
  20. TestForecast2
  21. TestForecast3
  22. TestForecast4
  23. TestForecast5
  24. TestLoadEffective
  25. TestLPSolver1
  26. TestName
  27. TestOperationEffective
  28. TestOperationPreOp
  29. TestOperationRouting
  30. TestPegging
  31. TestPython1
  32. TestPython2
  33. TestPython3
  34. TestProblems
  35. TestProcure1
  36. TestSafetyStock
  37. TestSampleModule
  38. TestScalability1
  39. TestScalability2
  40. TestScalability3
  41. TestXML
  42. TestXMLRemote