You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Squashed commit of the following:
commit 39fe8fcc723d954d6f19a4fac1dd5f78ce67788c
Author: Matt Wilson <[email protected]>
Date: Tue Dec 31 12:55:20 2024 +1100
boilerplate
commit e4c3bcd
Author: Matt Wilson <[email protected]>
Date: Tue Dec 31 12:49:43 2024 +1100
Hint directory support (`temp_file`) (synesissoftware#46)
* ~ preparatory refactoring
* `xtests::cpp::util::temp_file` : + now supports `hint_dir` parameter, to allow caller to specify temporary directory
* ~ VC++ compatibility
* `xtests::cpp::util::temp_file` : + now supports `hint_dir` parameter on Windows, to allow caller to specify temporary directory
* ~ tidying
commit 1bf1274
Merge: a7d7a21dae3603
Author: synesissoftware <[email protected]>
Date: Tue Dec 31 10:34:24 2024 +1100
Merge pull request synesissoftware#47 from synesissoftware/tests-ignore-env
Ensure environment variables cannot disrupt tests
commit dae3603
Author: Matt Wilson <[email protected]>
Date: Tue Dec 31 10:30:49 2024 +1100
**test.unit.utility.cmdline** : ~ ensuring that definition of `"TEST_VERBOSITY"` or `"XTESTS_VERBOSITY"` environment variables cannot disrupt tests
commit a7d7a21
Author: Matt Wilson <[email protected]>
Date: Tue Dec 31 09:03:55 2024 +1100
STLSoft-1.11 (synesissoftware#45)
* ~ consistency
* + added **test.unit.utility.cmdline**
* made command-line handling more standard, incl recognition of '--' special flag
* made command-line handling more standard, incl recognition of '--' special flag when handling '--help'
* ~ consistency
* + added `xtests_commandLine_parseHelpOrVerbosity()` / `XTESTS_COMMANDLINE_PARSE_HELP_OR_VERBOSITY()`
* - removed hard dependency on **shwild** in new unit-test
* ~ standardised example and test program entry-point source files
* ~ updated requirement on `_STLSOFT_VER` to >= 0x010b015d
* ~ boilerplate, version, ...
* ~ boilerplate, version, ...
commit 3bf62cd
Author: Matt Wilson <[email protected]>
Date: Tue Dec 17 08:03:44 2024 +1100
Substantial refactoring and minor feature enhancements (synesissoftware#44)
* ~ preparatory refactoring
* + added very short test macro names, such as `TEST_INT_EQ()`;
+ added scratch test **test.scratch.all_failure_messages**, which illustrates most/all failure messages
* + added floating-point test macros `XTESTS_TEST_FLOATINGPOINT_GREATER`, `XTESTS_TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `XTESTS_TEST_FLOATINGPOINT_LESS`, `XTESTS_TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
+ added floating-point test macros `TEST_FLOATINGPOINT_GREATER`, `TEST_FLOATINGPOINT_GREATER_OR_EQUAL`, `TEST_FLOATINGPOINT_LESS`, `TEST_FLOATINGPOINT_LESS_OR_EQUAL` ;
+ added floating-point test macros `TEST_FP_GT`, `TEST_FP_GE`, `TEST_FP_LT`, `TEST_FP_LE` ;
* ~ defect fix (for wide character tests)
* ~ preparatory refactoring for failure messages
* ~ preparatory work
* ~ refactoring (`switch` statements)
* ~ refactoring (`case` clauses)
* ~ preparatory refactoring
* ~ -preparatory refactoring
* ~ tidying
* ~ preparatory refactoring
* + added colour for individual elements of failure statements (including expected value, actual value, relation, function)
* ~ preparatory refactoring
* + applied colour changes throught all parts (save for defect reporting elements)
* ~ STLSoft version simplifications
* **test.scratch.all_failure_messages** : choosing pointer values (for ease of before/after comparison)
* - removed old non-colour implementations
* ~ refactoring-to-function `relation_equals_()`
* ~ refactoring-to-function `relation_contains_()`
* ~ refactoring-to-function `colorise_()`
* - removed old colour implementation(s)
* ~ temporary renaming of field to help with imminent refactoring
* ~ dealing with Windows' `min()` and `max()` macros
* + added and applied `XTESTS_CALL_NORETURN()` macro
* ~ tidying
* ~ whitespace
---------
Co-authored-by: Matt Wilson <[email protected]>
commit e74a0b8
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 17:10:48 2024 +1100
Integral types (synesissoftware#43)
* ~ simplified and separated (C++) implementation of `bool` tests
* ~ simplified and separated (C++) implementation of `bool` tests
* ~ updated **STLSoft** constructs, incl. macros
* ~ layout
* - dead code
* Merged 'msq' into 'int-types'
Squashed commit of the following:
commit 1083e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:40:31 2024 +1100
~ commit
commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:37:33 2024 +1100
Environment variable (for verbosity) (synesissoftware#41)
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`
commit 6620ce6
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:35:44 2024 +1100
~ improved boilerplate (synesissoftware#39)
* ~ now uses `stlsoft::integral_traits<>` for integer test macros (in C++) to allow for custom integral types to be tested
* Merged 'dev' into 'int-types'
Squashed commit of the following:
commit 97fc966
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 17:00:52 2024 +1100
Terse macros (synesissoftware#42)
* ~ ignores
* ~ all scratch-test entry-point source file names standardised
* + added terse forms of macros, available by including **xtests/terse-api.h**
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* ~ boilerplate
* Merged 'dev' into 'terse-macros'
Squashed commit of the following:
commit 1083e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:40:31 2024 +1100
~ commit
commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:37:33 2024 +1100
Environment variable (for verbosity) (synesissoftware#41)
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`
commit 6620ce6
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:35:44 2024 +1100
~ improved boilerplate (synesissoftware#39)
---------
Co-authored-by: Matt Wilson <[email protected]>
commit 1083e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:40:31 2024 +1100
~ commit
commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:37:33 2024 +1100
Environment variable (for verbosity) (synesissoftware#41)
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`
commit 6620ce6
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:35:44 2024 +1100
~ improved boilerplate (synesissoftware#39)
---------
Co-authored-by: Matt Wilson <[email protected]>
commit 97fc966
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 17:00:52 2024 +1100
Terse macros (synesissoftware#42)
* ~ ignores
* ~ all scratch-test entry-point source file names standardised
* + added terse forms of macros, available by including **xtests/terse-api.h**
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* ~ boilerplate
* Merged 'dev' into 'terse-macros'
Squashed commit of the following:
commit 1083e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:40:31 2024 +1100
~ commit
commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:37:33 2024 +1100
Environment variable (for verbosity) (synesissoftware#41)
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`
commit 6620ce6
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:35:44 2024 +1100
~ improved boilerplate (synesissoftware#39)
---------
Co-authored-by: Matt Wilson <[email protected]>
commit 1083e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:40:31 2024 +1100
~ commit
commit cf1e7e3
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:37:33 2024 +1100
Environment variable (for verbosity) (synesissoftware#41)
* Merged 'env-edits' into 'env'
Squashed commit of the following:
commit c536d64742d96df26887394185d625ac029a306c
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:20:56 2024 +1100
~ updated **STLSoft** constructs, incl. macros
commit 2a4a1636607aefc948ecd708ba48dac84dfe2e94
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 10:25:09 2024 +1100
~ layout
* ~ preparatory changes
* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`
commit 6620ce6
Author: Matt Wilson <[email protected]>
Date: Sat Nov 23 16:35:44 2024 +1100
~ improved boilerplate (synesissoftware#39)
Copy file name to clipboardexpand all lines: CHANGES.txt
+18-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ xTests - Changes
2
2
================
3
3
4
4
Created: 22nd February 2008
5
-
Updated: 14th July 2024
5
+
Updated: 23rd November 2024
6
6
7
7
8
8
************************************
@@ -16,6 +16,23 @@ Updated: 14th July 2024
16
16
************************************
17
17
18
18
19
+
31st December 2024 - 0.26.0-beta1
20
+
=================================
21
+
22
+
* now uses `stlsoft::integral_traits<>` for integer test macros (in C++) to allow for custom integral types to be tested;
23
+
* `temp_file` now takes a `hint_dir` parameter to allow specification of directory for (temporary) file;
24
+
* added missing test macros `XTESTS_TEST_FLOATINGPOINT_GREATER()`, `XTESTS_TEST_FLOATINGPOINT_GREATER_OR_EQUAL()`, `XTESTS_TEST_FLOATINGPOINT_LESS()`, `XTESTS_TEST_FLOATINGPOINT_LESS_OR_EQUAL()`;
25
+
* added macro `XTESTS_COMMANDLINE_PARSE_HELP_OR_VERBOSITY()`, which allows for a unified command-line parsing in test programs;
26
+
* added terse forms of macros, available by including **xtests/terse-api.h**;
27
+
* `XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`;
28
+
* added test programs **test.scratch.all_failure_messages**, **test.scratch.basics2**, **test.scratch.custom_integral_types**,
29
+
* substantial internal refactoring;
30
+
* minor tidying to CMake facilities;
31
+
* minor improvements to examples;
32
+
* minor improvements to project boilerplate files;
Copy file name to clipboardexpand all lines: HISTORY.md
+17
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,23 @@
1
1
# xTests - History
2
2
3
3
4
+
31st December 2024 - 0.26.0-beta1
5
+
---------------------------------
6
+
7
+
* now uses `stlsoft::integral_traits<>` for integer test macros (in C++) to allow for custom integral types to be tested;
8
+
*`temp_file` now takes a `hint_dir` parameter to allow specification of directory for (temporary) file;
9
+
* added missing test macros `XTESTS_TEST_FLOATINGPOINT_GREATER()`, `XTESTS_TEST_FLOATINGPOINT_GREATER_OR_EQUAL()`, `XTESTS_TEST_FLOATINGPOINT_LESS()`, `XTESTS_TEST_FLOATINGPOINT_LESS_OR_EQUAL()`;
10
+
* added macro `XTESTS_COMMANDLINE_PARSE_HELP_OR_VERBOSITY()`, which allows for a unified command-line parsing in test programs;
11
+
* added terse forms of macros, available by including **xtests/terse-api.h**;
12
+
*`XTESTS_COMMANDLINE_PARSE_VERBOSITY()` now also recognises, if the command-line argument `"--verbosity= . . ."` is not found, the enviroment variables `"XTESTS_VERBOSITY"` and `"TEST_VERBOSITY"`;
13
+
* added test programs **test.scratch.all_failure_messages**, **test.scratch.basics2**, **test.scratch.custom_integral_types**,
14
+
* substantial internal refactoring;
15
+
* minor tidying to CMake facilities;
16
+
* minor improvements to examples;
17
+
* minor improvements to project boilerplate files;
Copy file name to clipboardexpand all lines: README.md
+12-10
Original file line number
Diff line number
Diff line change
@@ -295,11 +295,13 @@ int factorial(int v)
295
295
296
296
switch (v)
297
297
{
298
-
case 0:
299
-
case 1:
300
-
return 1;
301
-
default:
302
-
return v * factorial(v - 1);
298
+
case 0:
299
+
case 1:
300
+
301
+
return 1;
302
+
default:
303
+
304
+
return v * factorial(v - 1);
303
305
}
304
306
}
305
307
@@ -341,7 +343,7 @@ int main(int argc, char* argv[])
341
343
}
342
344
```
343
345
344
-
**NOTE**: the language shown in **C**, but a **C++** version of this example program would be very similar. **C++** test programs have additiona support for facilities such as the throwing of exceptions.
346
+
**NOTE**: the language shown is **C**, but a **C++** version of this example program would be very similar. **C++** test programs have additiona support for facilities such as the throwing of exceptions.
345
347
346
348
347
349
## Project Information
@@ -364,23 +366,23 @@ If you'd like to help out with the project, please raise an issue via [GitHub Pa
364
366
365
367
#### STLSoft <!-- omit in toc -->
366
368
367
-
**xTests** depends on the **STLSoft** libraries, version 1.9.136 (or later). Version 1.10.6 (or later) is recommended.
369
+
**xTests** depends on the **STLSoft** libraries, version 1.11.1 (or later):
0 commit comments