You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.6 KiB

  1. ---
  2. # Notes:
  3. # Sample project C code is not presently written to produce a release artifact.
  4. # As such, release build options are disabled.
  5. # This sample, therefore, only demonstrates running a collection of unit tests.
  6. :project:
  7. :use_exceptions: FALSE
  8. :use_test_preprocessor: TRUE
  9. :use_auxiliary_dependencies: TRUE
  10. :build_root: build
  11. # :release_build: TRUE
  12. :test_file_prefix: test_
  13. :which_ceedling: gem
  14. :ceedling_version: 0.31.1
  15. :default_tasks:
  16. - test:all
  17. #:test_build:
  18. # :use_assembly: TRUE
  19. #:release_build:
  20. # :output: MyApp.out
  21. # :use_assembly: FALSE
  22. :environment:
  23. :extension:
  24. :executable: .out
  25. :paths:
  26. :test:
  27. - +:tests/**
  28. - -:tests/support
  29. :source:
  30. - src/createCustomer.*
  31. - src/customerLogin.*
  32. - src/helperFunctions.*
  33. - src/error.*
  34. - src/createEmployeeAccount.*
  35. - src/employeeLogin.*
  36. - src/mainMenu.*
  37. - src/showGeneralInfoEmployee.*
  38. :support:
  39. - tests/support
  40. :libraries: []
  41. :defines:
  42. # in order to add common defines:
  43. # 1) remove the trailing [] from the :common: section
  44. # 2) add entries to the :common: section (e.g. :test: has TEST defined)
  45. :common: &common_defines []
  46. :test:
  47. - *common_defines
  48. - TEST
  49. :test_preprocess:
  50. - *common_defines
  51. - TEST
  52. :cmock:
  53. :mock_prefix: mock_
  54. :when_no_prototypes: :warn
  55. :enforce_strict_ordering: TRUE
  56. :plugins:
  57. - :ignore
  58. - :callback
  59. :treat_as:
  60. uint8: HEX8
  61. uint16: HEX16
  62. uint32: UINT32
  63. int8: INT8
  64. bool: UINT8
  65. # Add -gcov to the plugins list to make sure of the gcov plugin
  66. # You will need to have gcov and gcovr both installed to make it work.
  67. # For more information on these options, see docs in plugins/gcov
  68. :gcov:
  69. :reports:
  70. - HtmlDetailed
  71. :gcovr:
  72. :html_medium_threshold: 75
  73. :html_high_threshold: 90
  74. #:tools:
  75. # Ceedling defaults to using gcc for compiling, linking, etc.
  76. # As [:tools] is blank, gcc will be used (so long as it's in your system path)
  77. # See documentation to configure a given toolchain for use
  78. # LIBRARIES
  79. # These libraries are automatically injected into the build process. Those specified as
  80. # common will be used in all types of builds. Otherwise, libraries can be injected in just
  81. # tests or releases. These options are MERGED with the options in supplemental yaml files.
  82. :libraries:
  83. :placement: :end
  84. :flag: "-l${1}"
  85. :path_flag: "-L ${1}"
  86. :system: [] # for example, you might list 'm' to grab the math library
  87. :test: []
  88. :release: []
  89. :plugins:
  90. :load_paths:
  91. - "#{Ceedling.load_path}"
  92. :enabled:
  93. - stdout_pretty_tests_report
  94. - module_generator
  95. ...