• Home
  • Raw
  • Download

Lines Matching full:unity

1 # Unity Configuration Guide
12 Unity is designed to run on almost anything that is targeted by a C compiler.
17 All of Unity's configuration options are `#defines`.
32 …ic to your target. All you must do is define `UNITY_INCLUDE_CONFIG_H` and Unity will rely on `unit…
35 These defines need to take effect where ever unity.h is included.
36 This would be test test, the test runner (if you're generating one), and from unity.c when it's com…
47 Therefore, Unity has a number of features for helping to adjust itself to match your required integ…
52 The first thing that Unity does to guess your types is check `stdint.h`.
53 This file includes defines like `UINT_MAX` that Unity can use to learn a lot about your system.
56 That way, Unity will know to skip the inclusion of this file and you won't be left with a compiler …
68 If you don't want Unity to check this file either, define this to make it skip the inclusion.
132 Unity will automatically include 64-bit support if it auto-detects it, or if your `int`, `long`, or…
157 By default, Unity guesses that you will want single precision floating point support, but not doubl…
172 Unity aims for as small of a footprint as possible and avoids most standard library calls (some emb…
175 By default, Unity will print the actual results of floating point assertion failure (e.g. ”Expected…
187 If enabled, Unity assumes you want your `FLOAT` asserts to compare standard C floats.
198 If enabled, Unity assumes you want your `DOUBLE` asserts to compare standard C doubles.
212 …UAL_FLOAT` and `UNITY_ASSERT_EQUAL_DOUBLE` as documented in the big daddy Unity Assertion Guide, y…
217 For further details on how this works, see the appendix of the Unity Assertion Guide.
227 …inf` in `math.h` as macros, nothing needs to be done. If your toolchain doesn't define these, Unity
240 Unity uses the `NULL` macro, which defines the value of a null pointer constant, defined in `stddef…
251 Unity provides a simple (and very basic) printf-like string output implementation, which is able to…
298 …there are a number of other options which will come in handy to customize Unity's behavior for you…
310 By default, Unity prints its results to `stdout` as it runs.
348 In these cases, you can give Unity a safe default for these by defining this option with the attrib…
359 By default, Unity outputs \n at the end of each line of output.
372 Unity stores a set of internal scratchpads which are used to pass extra detail information around.
402 If your embedded system doesn't support the standard library setjmp, you can exclude Unity's relian…
417 Unity handles test failures via `setjmp`/`longjmp` pair by default. As mentioned above, you can dis…
441 return setjmp(Unity.AbortFrame) == 0;
446 longjmp(Unity.AbortFrame, 1);
452 Unity is used to provide the assertion macros only, and an external test harness/runner is used for…
467 if (Unity.CurrentTestFailed == 1) {
469 } else if (Unity.CurrentTestIgnored == 1) {
487 Define this to measure and report execution time for each test in the suite. When enabled, Unity wi…
489 Linux environments, this is automatic. If not, you can give Unity more information.
522 Historically, Unity treated the former as an alias for an integer comparison.
525 These four options will allow you to specify how Unity will treat these assertions.
531 - AS_RAW - Unity assumes that you can compare the two values using `==` and `!=` and will do so.
533 - AS_NONE - Unity will disallow the use of these shorthand macros altogether, insisting that develo…
537 This will force Unity to support variadic macros when using its own built-in RUN_TEST macro.
538 This will rarely be necessary. Most often, Unity will automatically detect if the compiler supports…
544 Unity can automatically define all supported parameterized tests macros.
553 before including `unity.h`, and they won't be redefined.
556 | User defines macro | Unity will _not_ define following macro |
579 But especially if you must run your test suite on your target hardware, your Unity configuration wi…
633 It gives you a glimpse of what kind of stuff Unity has to deal with for every single test case.
648 The defines and macros in this guide should help you port Unity to just about any C target we can i…