37 Commits

Author SHA1 Message Date
Mark VanderVoord c3a01d8d65 Better reporting during running example projects 2026-05-29 11:26:20 -04:00
Mark VanderVoord dd70d40adf Make sure that examples get run with ci, and using appropriate settings. 2026-05-29 10:29:30 -04:00
Mark VanderVoord 444fbda72a refactor self-test engine to match Ceedling's tool format 2026-05-28 16:11:35 -04:00
Mark VanderVoord 324d0624f3 Pull paths from reusable target information. 2026-05-26 17:13:03 -04:00
Mark VanderVoord c7b0faabdc Clean up testing pipeline some more... centralized reporting. 2026-05-18 11:53:26 -04:00
Mark VanderVoord cc00ca6f07 Make example 3 use same yml files as other tests. 2026-05-15 15:24:32 -04:00
Mark VanderVoord b1d96f2491 Work on yaml file reusability for other projects.
Catch up a couple test details.
2026-05-15 14:16:57 -04:00
Mark VanderVoord 849d95e119 improve new format checking to capture all valid outputs.
improve floating point special case reporting to always use verbose.
fix bug in arrays where values were sometimes not shown.
2026-03-12 14:19:12 -04:00
Mark VanderVoord 943f4706ee improve test readability for self tests under rake. 2026-03-12 12:40:49 -04:00
Mark VanderVoord 08d09f5ed6 fail the test for output formatting issues 2026-01-23 16:24:36 -05:00
Mark VanderVoord b57c7e0b5c Better output validation for catching bug #807 2026-01-23 16:19:24 -05:00
Mark VanderVoord d1fe18bd54 Updates for the new year. 2026-01-23 11:18:36 -05:00
Mark VanderVoord 1a29024cc7 It's a New Year 2025-01-01 11:46:30 -05:00
Mark VanderVoord 671f8d25f1 Update all the boilerplates 2024-03-16 23:15:00 -04:00
Martyn Jago b44c2dd095 Fix broken YAML parsing on later Rubies with Psych >=4.0
YAML.load is now interpreted as YAML.safe_load, which breaks where the
YAML file contains aliases. If we can assume our yaml files are
trusted (since this a development tool), we can check for the presence
of YAML.unsafe_load and use it instead if it exists.
2022-05-27 15:08:11 +01:00
Mark VanderVoord 0df1d442cb Rearrange details to always print if given, no matter if another msg added or not.
Print output on failures no matter if verbose or not.
Enforce that HEX comparisons are unsigned comparisons.
2022-04-19 16:21:04 -04:00
Mark VanderVoord fcab680286 Ruby script cleanup.
Fix warnings.
Remove 32-bit tests from standard suite because they're not running on most platforms.
2021-01-16 21:03:18 -05:00
mvandervoord 71e77ce6fb Added NOT-EQUAL int variants.
Organized Unit Tests
2020-03-16 18:45:40 -04:00
mvandervoord 47b630391d Minor tweak to the way we load includes 2019-12-15 10:07:05 -05:00
mvandervoord fb45e3010b the makefiles in the extras are in the test dirs. 2019-12-14 22:38:52 -05:00
mvandervoord ef0cf704d9 Centralize all testing to the test folder instead of each subproject.
Trigger ALL tests when calling `rake test:all` instead of that being just the core tests.
2019-12-14 22:24:30 -05:00
mvandervoord 461c6b3978 Clean up ci tasks.
Get the files to use the build directory again.
2019-12-14 05:18:46 -05:00
mvandervoord 3f71d10b2e Refactor all yaml files for self-tests to fit Ceedling format for wider reuse.
Fix mistake in unity selftest without output spy running.
Namespace self-tests for consistency across ThrowTheSwitch projects (like being able to test:all)
Reduce clutter of NAMED self-tests in task list.
2019-12-13 20:38:42 -05:00
mvandervoord d16c27b085 - added target for checking ANSI compliance
- fixed ANSI (C89) issues, including #418
2019-10-25 10:17:12 -04:00
John Lindgren 9578a382cc Fix "rake scripts" when running on Windows.
cmd.exe does not recognize backslash as an escape character,
leading to errors like the following:

    error: stray '\' in program
    note: in definition of macro 'UNITY_OUTPUT_CHAR_HEADER_DECLARATION'

It does, however, recognize double quotes, so we can use those as
a portable method of escaping special characters on both Windows
and UNIX.
2019-09-13 16:19:46 -04:00
Mark VanderVoord 0892db2376 Protect against nil return codes in rakefiles 2019-07-06 11:31:31 -04:00
John Lindgren 6b657c6f17 Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
Aviv Palivoda ad373024f2 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to tests rakefile_helper.rb 2017-08-04 14:40:34 +03:00
Mark VanderVoord b8bfb01edf Add support for AStyle in test makefile. It’s going to assume you have it installed. 2017-03-29 19:23:12 -04:00
Mark VanderVoord 2a5b24f7bf Finished updating all Ruby scripts to match our coding standard. Woo! 2017-03-28 20:02:53 -04:00
Mark VanderVoord eba387fa3e - Add tests which prove command line arguments now work with runner. Fixed a few bugs in this area. 2016-06-27 08:41:58 -04:00
Mark VanderVoord 96f51e8530 Updated method of testing generate_test_runner script to be a FUNCTIONAL test instead of a perfect code match. Backfilled most tests and added some coverage not previously present. Still need to test new command line args and a few cmock details. 2016-06-22 20:57:11 -04:00
jsalling cd472439bf Fixture rakefile has a conflict defining UNITY_OUTPUT_CHAR
Make core Unity rakefile helper follow Fixture define procedure.
 This commit reverts parts of 36e2ca1.
2016-01-19 23:47:32 -06:00
Mark VanderVoord 33325f4a0b More fixes to line endings 2016-01-07 14:20:59 -05:00
Mark VanderVoord ba87d27b77 - switch to old-school hash notation to be backwards compatible with older versions of ruby 2015-07-21 07:35:29 -04:00
Mark VanderVoord 14b074336b reenable results summary.
support tests named spec as well.
clean up UnityBegin to make us not have to dig inside it to inject the filename.
Add UNITY_OUTPUT_START() and UNITY_OUTPUT_COMPLETE() for future use.
2014-07-30 22:12:49 -04:00
Mark VanderVoord bff1fc68cb rearranged project to centralize all self-test stuff under test directory. only pull in includes when required. 2014-07-30 10:14:02 -04:00