Tobias Boege
c9c99c0050
gb.test: Use gb.test.tap
...
[GB.TEST]
* NEW: Use gb.test.
This removes the Assert and Track classes and uses gb.test.tap instead.
Test methods are now executed inside subtests, plan lines are auto-
matically emitted by the harness.
Differences between gb.tests's and gb.test.tap's Assert module:
- Instead of Assert.True and Assert.False, use Assert.Ok.
- Instead of Assert.Equals* for every type, there is a generic
Assert.Equals for Variants and a specific Assert.StringEquals
for strings which prints diagnostics when the test fails.
- Assert.BailOut does not terminate the entire program, just
the TAP stream.
- Assert.ErrorWithCode is called Assert.ErrorCode.
All TAP printing is done through Assert now. Errors happening in the
test code are not caught and spoofed in the TAP stream anymore, they
cause a test failure. The system would be more robust if the testee
would be in a different process from the tester.
2020-02-27 20:38:55 +01:00
Tobias Boege
679cb64554
gb.test.tap: Add more diagnostics
...
[GB.TEST.TAP]
* NEW: Add more diagnostics when Assert methods fail.
2020-02-27 20:38:55 +01:00
Tobias Boege
6c82b48abc
gb.test.tap: Add SkipAll and don't lose stderr
...
[GB.TEST.TAP]
* NEW: Support skipping all tests.
* BUG: DO intercept a test process' stderr but forward it verbatim to the TAP stream.
2020-02-27 20:38:55 +01:00
Tobias Boege
27cc0504ac
gb.test.tap: Fix subtest summary
...
[GB.TEST.TAP]
* BUG: Correctly summarize subtest. In particular empty tests fail.
2020-02-27 20:38:55 +01:00
Tobias Boege
3fdfbe3b15
gb.test.tap: Allow Assert to be reset
...
[GB.TEST.TAP]
* NEW: Add Reset() method to Assert. Useful if you use the same (automatic) instance for multiple TAP streams.
* BUG: Fix state handling in TapPrinter.Finished.
2020-02-27 20:38:55 +01:00
Tobias Boege
73eafee853
gb.test.tap: Don't set ExitCode when reading from a Stream
...
[GB.TEST.TAP]
* BUG: TestHarness cannot set ExitCode when there is no Process involved.
2020-02-27 20:38:55 +01:00
Tobias Boege
13dd1d252b
gb.test.tap: Fix output stream handling
...
[GB.TEST.TAP]
* NEW: Allow to set the output stream of Assert.
* BUG: Subtests inherit their parent's output stream.
2020-02-27 20:38:55 +01:00
Tobias Boege
65da83b374
gb.test.tap: Forgot Assert.BailOut
...
[GB.TEST.TAP]
* NEW: Add Assert.BailOut wrapper for the internal TapPrinter.
2020-02-27 20:38:55 +01:00
Tobias Boege
185bbf5745
gb.test.tap: TestStats class and don't capture stderr
...
[GB.TEST.TAP]
* NEW: Turn TestStats into a class.
* NEW: Store TestStats.Failures as an Integer[].
* BUG: Do NOT intercept test's stderr and convert it to diagnostics.
2020-02-27 20:38:55 +01:00
Tobias Boege
622bd35522
gb.test.tap: Support Stream input in TestHarness
...
[GB.TEST.TAP]
* NEW: Allow TestHarness to read from just a Stream. Unlike reading from a Process, this is eager instead of event-driven.
2020-02-27 20:38:55 +01:00
Tobias Boege
4d285e8ac5
gb.test.tap: Fix "Expected" diagnostic in StringEquals
...
[GB.TEST.TAP]
* BUG: Fix "Expected" diagnostic in StringEquals.
2020-02-27 20:38:55 +01:00
Tobias Boege
b583aeaeed
gb.test.tap: Support multiline diagnostics
...
[GB.TEST.TAP]
* NEW: Support multiline diagnostics.
2020-02-27 20:38:55 +01:00
Tobias Boege
235169553c
gb.test.tap: More Assert methods
...
[GB.TEST.TAP]
* NEW: More Assert methods for compatibility with gb.test.
2020-02-27 20:38:55 +01:00
Tobias Boege
787674f188
gb.test.tap: New component for reading and writing TAP
...
[GB.TEST.TAP]
* NEW: Add new component based on an old fork of gb.test.
2020-02-27 20:38:55 +01:00
gambas
0a63c13676
Merge branch 'master' of gitlab.com:gambas/gambas
2020-02-25 03:19:34 +01:00
gambas
b8923a2b93
Update many icons.
...
[GB.FORM.STOCK]
* NEW: Update many icons.
2020-02-25 03:19:16 +01:00
Christof Thalhofer
3752088d37
gbt3: Fix cherrypicking
...
[GBT3]
* BUG: Fix selection of testmodule and testmethod
2020-02-24 14:08:40 +01:00
Christof Thalhofer
a10a5db270
gbt3: refactoring, more stability, TAP stream
...
[GBT3]
* NEW: gbt3 finds compiler and executor on the computer, TAP output as stream
2020-02-24 11:15:09 +01:00
Christof Thalhofer
ea260ee017
gbt3: fix bug: missing wait
...
[GBT3]
* BUG: gbt3: Fix missing Wait. Now reliable testing.
2020-02-23 22:50:38 +01:00
Christof Thalhofer
06b405f22d
gb.test: BailOut if a testmodule is empty
...
[GB.TEST]
* NEW: BailOut if a testmodule is empty
2020-02-23 22:31:28 +01:00
Brian G
11eaba36bc
[Scripter]
...
* NEW removed Lib directive
* NEW Added support for -w warnings
* NEW Added to only check last reply from compiler for ok
* NEW Added support for libraries using new Lib directive
2020-02-23 12:16:23 -08:00
Christof Thalhofer
f6acfff787
gbt3 a Gambas program to test a project from commandline
...
*[NEW] gbt3.gambas: runs tests from commandline
2020-02-23 17:53:01 +01:00
Christof Thalhofer
f3413f1533
gb.test: example unittesthelloworld with test module
2020-02-23 12:52:57 +01:00
Christof Thalhofer
e4f06f6674
gb.test refactoring for use of test modules
...
[GB.TEST]
* NEW: Add support for test modules.
2020-02-23 12:38:53 +01:00
gambas
fd778d20c8
Fix an uninitialized local variable.
...
[COMPILER]
* BUG: Fix an uninitialized local variable.
2020-02-22 22:43:11 +01:00
gambas
0387d9459b
Do not put explicit copyright holder name in the COPYING file.
...
[GB.DB.POSTGRESQL]
* BUG: Do not put explicit copyright holder name in the COPYING file.
2020-02-22 22:18:39 +01:00
gambas
cf7027c431
Add licence exception for OpenSSL.
...
[GB.DB.POSTGRESQL]
* NEW: Add licence exception for OpenSSL.
2020-02-22 22:08:57 +01:00
gambas
3adee3a411
Add support for test modules.
...
[DEVELOPMENT ENVIRONMENT]
* NEW: Add support for test modules.
2020-02-22 15:58:32 +01:00
gambas
e584ba6713
Add support for test modules.
...
[COMPILER]
* NEW: Support for test modules.
[ARCHIVER]
* NEW: Support for test modules.
2020-02-22 15:57:46 +01:00
gambas
b7c6d4cca6
Packager: Add distribution suffix in rpm support package dependencies.
...
[DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Add distribution suffix in rpm support package dependencies.
2020-02-22 00:51:49 +01:00
Brian G
522c562a3d
[Scripter]
...
* NEW Added support for -w warnings
* NEW Added to only check last reply from compiler for ok
* NEW Added support for libraries using new Lib directive
2020-02-21 15:49:54 -08:00
Brian G
bec702cbd8
[Scripter]
...
* NEW Added support for -w warnings
* NEW Added to only check last reply from compiler for ok
2020-02-21 13:43:02 -08:00
gambas
26b4327f52
DataView: Add SelectAll() and UnselectAll() methods.
...
[GB.DB.FORM]
* NEW: DataView: Add SelectAll() and UnselectAll() methods.
2020-02-21 02:52:31 +01:00
gambas
0f3277cbb7
Database editor: The record count is correctly updated now, when records are removed or added.
...
[DEVELOPMENT ENVIRONMENT]
* BUG: Database editor: The record count is correctly updated now, when records are removed or added.
2020-02-21 02:51:53 +01:00
gambas
a5819d2511
The "remove trailing spaces" formatting option has no effect on '*.md' or '*.MD' files.
...
[DEVELOPMENT ENVIRONMENT]
* NEW: Update Gambas fonts.
* NEW: The "remove trailing spaces" formatting option has no effect on '*.md' or '*.MD' files.
2020-02-21 02:36:02 +01:00
gambas
ba39f8ff72
TextEditor: Correctly handle the drawing of the difference before the first line.
...
[GB.FORM.EDITOR]
* BUG: TextEditor: Correctly handle the drawing of the difference before the first line.
* BUG: TextEditor: Correctly relayout differences when the Wrap property changes.
2020-02-20 16:28:47 +01:00
gambas
c24a82a53d
Merge branch 'master' of gitlab.com:gambas/gambas
2020-02-19 03:01:10 +01:00
gambas
8a91545f11
CsvFile: Support for creating CSV files, not just reading them.
...
[GB.UTIL]
* NEW: CsvFile: Open() is a new method for opening a CSV file for reading.
* NEW: CsvFile: Create() is a new method for opening a CSV file for writing.
2020-02-19 03:00:45 +01:00
Benoît Minisini
1dd18b392f
Update .gitlab-ci.yml
2020-02-18 23:10:55 +00:00
gambas
131653ab1f
Converting a string to a pointer returns a pointer pointing at the beginning of the string.
...
[INTERPRETER]
* NEW: Converting a string to a pointer returns a pointer pointing at the beginning of the string.
2020-02-18 23:03:24 +01:00
gambas
7bedc9af65
Fix VarPtr() behaviour.
...
[INTERPRETER]
* BUG: VarPtr() on local strings are forbidden again.
* BUG: VarPtr() on variants now returns a pointer to the variant contents.
2020-02-18 20:36:45 +01:00
gambas
b8952bd393
Packager: Take package release number into account in 'rpm' & 'deb' dummy package dependencies.
...
[DEVELOPMENT ENVIRONMENT]
* BUG: Packager: Take package release number into account in 'rpm' & 'deb' dummy package dependencies.
2020-02-14 23:59:02 +01:00
gambas
6793fbeadb
Fix a typo in the icon map file.
...
[GB.FORM]
* BUG: Fix a typo in the icon map file.
2020-02-14 01:24:19 +01:00
gambas
d2c1b2f31c
Text file compression is now transparent, and activated through a toggle button.
...
[DEVELOPMENT ENVIRONMENT]
* NEW: Text file compression is now transparent, and activated through a toggle button.
* NEW: Uncompressed files are now stored in the '.hidden/.uncompressed' hidden directory. Files are removed from the old 'Uncompressed' visible directory as soon as it is marked compressed again.
* NEW: Use the new 'view-tree' icon for the project tree toggle button.
2020-02-14 00:47:51 +01:00
gambas
4cbe937d04
Add 'view-tree' stock icon.
...
[GB.FORM]
* NEW: Add 'view-tree' stock icon.
[GB.FORM.STOCK]
* NEW: Add 'view-tree' stock icon.
* NEW: Redraw 'terminal' icon.
2020-02-14 00:46:54 +01:00
gambas
e71c1c8e5f
Printer.Paper now works as expected.
...
[GB.GTK]
* BUG: Printer.Paper now works as expected.
[GB.GTK3]
* BUG: Printer.Paper now works as expected.
2020-02-14 00:45:36 +01:00
gambas
166231e89f
Process: The answer to an expected prompt is correctly sent now.
...
[GB.UTIL]
* BUG: Process: The answer to an expected prompt is correctly sent now.
2020-02-12 17:28:57 +01:00
gambas
311d05d473
The Terminal class has been removed, and replace by an extension of the Process class.
...
[GB.UTIL]
* NEW: The Terminal class has been removed, and replace by an extension of the Process class. In other word the Expect() method is now directly a method of the Process class.
2020-02-12 02:26:10 +01:00
gambas
ee6b43ca21
Merge branch 'master' of gitlab.com:gambas/gambas
2020-02-11 01:53:47 +01:00
gambas
37b29a2191
Terminal: A new class that allows to answer the prompts of interactive commands running in a virtual terminal easily (think about ssh, scp...).
...
[GB.UTIL]
* NEW: Terminal: A new class that allows to answer the prompts of interactive commands running in a virtual terminal easily (think about ssh, scp...).
2020-02-11 01:53:07 +01:00