Commit graph

7974 commits

Author SHA1 Message Date
Christof Thalhofer
6b2f8ec1b2 delete redundant TestSetupTeardown.test 2020-05-02 15:27:35 +02:00
Christof Thalhofer
91c4ce2638 started documentation and task hide symbols 2020-05-02 11:53:30 +02:00
Christof Thalhofer
3cf670ef85 Test.PrintSummary: Result in the last line 2020-05-01 18:59:20 +02:00
Tobias Boege
4c2a4f47f5 Show TODOs and SKIPs in summary
[GB.TEST]
* BUG: Do not trim whitespace from diagnostic lines.
* NEW: Show TODOs (failed and bonus) and SKIPs in summary.

Previously, TapPrinter.Diagnostic would Trim$ its argument before
splitting it by line. This would remove any indentation that may
be useful for formatted diagnostics output, so it has to go.
Additionally I special-case Null and gb.Lf to print exactly "#\n",
which is a common use case as a visual separator.
2020-05-01 15:57:53 +02:00
Christof Thalhofer
7d480229e0 Rewrite TestSummary and TestMe
TestSummary.DoSomeAsserts, DoTodo and DoSkip succeed
2020-05-01 10:42:29 +02:00
Christof Thalhofer
098c5915a5 New Bug: Directives are never stored.
This must be fixed before Summary can be created.
2020-04-28 12:17:02 +02:00
Christof Thalhofer
0943f349eb taskell updated: Todo exists 2020-04-28 09:36:44 +02:00
Christof Thalhofer
c306e9a5fc Fix: Free Assert from non-assertions
Assert free from non-assertions. Also Assert and Test now are
modules.
2020-04-27 12:01:47 +02:00
Christof Thalhofer
7712c62e47 taskell better explanation 2020-04-26 13:07:31 +02:00
Christof Thalhofer
750a6057d1 Taskell next task todo and skip
Both are not implemented well but necessary for summary
2020-04-26 12:49:06 +02:00
Christof Thalhofer
127eb07385 Merge remote-tracking branch 'upstream/master' into testing-system 2020-04-26 12:07:56 +02:00
Christof Thalhofer
d7a478cc81 Fix: Test bails out if testmodule doesn't exist 2020-04-26 11:23:01 +02:00
Christof Thalhofer
d02c023e67 TestFailures and TestSummary updated 2020-04-26 11:03:53 +02:00
Christof Thalhofer
f36f656110 selftests: get rid of old plans 2020-04-26 10:48:30 +02:00
Christof Thalhofer
7d55499305 Better readability of TAP output for humans
... I mean elder humans, like me
2020-04-26 10:44:59 +02:00
Christof Thalhofer
24ef4c8c07 Fix: BailOut stops all tests 2020-04-26 10:41:35 +02:00
Christof Thalhofer
470cdf7cf0 Merge branch 'testing-system' of ssh://gitlab.com/christhal/gambas into testing-system 2020-04-25 21:29:49 +02:00
Christof Thalhofer
b640e5116b Tasks to do until gb.test is done so far 2020-04-25 21:28:51 +02:00
Christof Thalhofer
e5c9b3c1c2 gb.test and gbt3 some refactoring and future tasks 2020-04-25 21:28:51 +02:00
Christof Thalhofer
9870741dcc Tasks to do until gb.test is done so far 2020-04-25 20:19:53 +02:00
Christof Thalhofer
8ff76cb279 gb.test and gbt3 some refactoring and future tasks 2020-04-25 11:42:19 +02:00
Tobias Boege
aeef68eedf gb.test: Rename ReverseNext to IntendedFailure
IMHO a more descriptive name. One can "reverse" so many things.
2020-04-25 11:42:19 +02:00
Tobias Boege
12d39c8772 Refactor TapPrinter and Assert
This is a big refactor of the TapPrinter and Assert interaction with
the goal of enabling gb.test to print a self-summary after a TAP session
(without storing the TAP we printed and parsing it afterwards). The main
feature addition is a new class representing an assertion (together with
its subtests). Objects of this type are now produced by TapPrinter when
it prints an assertion and by TapParser alike when it parses TAP.
This allows more uniform and more detailed reporting of failures, too.

For organizational reasons, subtest support was moved into the printer.

[GB.TEST]
* NEW: Expose the TapContext class which holds the current TAP session's state.
* NEW: Represent assertions (and entire subtests) by TestAssertion objects in both TapPrinter and TapParser.
* NEW: Coalesce the four TapParser events for assertions into one.
* OPT: Move subtest support into TapPrinter, removing the need to create multiple TapPrinter objects.
* OPT: Remove the need for buffering the TAP to print a self-summary.
* BUG: Fix the buffering issue that would lose TAP when the process crashes.
2020-04-25 11:42:19 +02:00
Tobias Boege
acc8f11040 gb.test: Rename ReverseNext to IntendedFailure
IMHO a more descriptive name. One can "reverse" so many things.
2020-04-25 05:48:28 +02:00
Tobias Boege
35cac9053f Refactor TapPrinter and Assert
This is a big refactor of the TapPrinter and Assert interaction with
the goal of enabling gb.test to print a self-summary after a TAP session
(without storing the TAP we printed and parsing it afterwards). The main
feature addition is a new class representing an assertion (together with
its subtests). Objects of this type are now produced by TapPrinter when
it prints an assertion and by TapParser alike when it parses TAP.
This allows more uniform and more detailed reporting of failures, too.

For organizational reasons, subtest support was moved into the printer.

[GB.TEST]
* NEW: Expose the TapContext class which holds the current TAP session's state.
* NEW: Represent assertions (and entire subtests) by TestAssertion objects in both TapPrinter and TapParser.
* NEW: Coalesce the four TapParser events for assertions into one.
* OPT: Move subtest support into TapPrinter, removing the need to create multiple TapPrinter objects.
* OPT: Remove the need for buffering the TAP to print a self-summary.
* BUG: Fix the buffering issue that would lose TAP when the process crashes.
2020-04-25 05:45:42 +02:00
gambas
c443337973 The Window State event is correctly raised now, and the state properties are now correctly synchronized.
[GB.GTK]
* BUG: The Window State event is correctly raised now, and the state properties are now correctly synchronized.

[GB.GTK3]
* BUG: The Window State event is correctly raised now, and the state properties are now correctly synchronized.
2020-04-23 19:05:48 +02:00
gambas
1a496a05b6 Fix test source file initial comment.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix test source file initial comment.
2020-04-23 01:34:53 +02:00
gambas
53865b1822 Top-level menus of embedded forms are not inserted in the top-level form anymore.
[GB.WEB.GUI]
* BUG: Top-level menus of embedded forms are not inserted in the top-level form anymore.
2020-04-23 01:31:23 +02:00
gambas
25d542ca17 Change the version control synchronize icon to the 'download' icon.
[DEVELOPMENT ENVIRONMENT]
* NEW: Change the version control synchronize icon to the 'download' icon.
2020-04-22 23:43:06 +02:00
gambas
d37d6c97b8 Form editor: Add a information line on the toolbox that displays the name of the current hovered toolbox control, and the component it belongs to.
[DEVELOPMENT ENVIRONMENT]
* BUG: Hitting ESC key when the focus is on the console immediate command textbox now always closes the console tab.
* NEW: Form editor: Add a information line on the toolbox that displays the name of the current hovered toolbox control, and the component it belongs to.
2020-04-22 23:40:36 +02:00
gambas
ee81637c72 Window: Add a State event that is raised when the window is minimized, maximized or set to fullscreen.
[GB.GTK]
* NEW: Window: Add a State event that is raised when the window is minimized, maximized or set to fullscreen.

[GB.GTK3]
* NEW: Window: Add a State event that is raised when the window is minimized, maximized or set to fullscreen.

[GB.QT4]
* NEW: Window: Add a State event that is raised when the window is minimized, maximized or set to fullscreen.

[GB.QT5]
* NEW: Window: Add a State event that is raised when the window is minimized, maximized or set to fullscreen.
2020-04-21 08:39:07 +02:00
gambas
e9f3767f98 Search dialog: Case insensitive search with words only now works correctly in all cases.
[DEVELOPMENT ENVIRONMENT]
* BUG: Search dialog: Case insensitive search with words only now works correctly in all cases.
2020-04-21 08:05:59 +02:00
gambas
9c12c1f886 Search dialog: The project browsing is now done through a background task.
[DEVELOPMENT ENVIRONMENT]
* BUG: Code editor: The automatic completion now appears at the correct position when the view is splitted.
* NEW: Search dialog: The project browsing is now done through a background task.
* NEW: Redraw the module icons.
2020-04-21 07:35:27 +02:00
gambas
a53acf81c7 TextEditor: Do not use Application.Busy in Load() and Save() methods and fix TextEditor[].Purge() method.
[GB.FORM.EDITOR]
* NEW: TextEditor: Do not use Application.Busy in Load() and Save() methods.
* BUG: TextEditor: TextEditor[].Purge() works as expected now.
2020-04-21 07:32:52 +02:00
gambas
fae4d5df83 Spinner: Add a Padding property.
[GB.FORM]
* NEW: Spinner: Add a Padding property.
2020-04-21 07:32:27 +02:00
gambas
b77de38fdf Stock: Analyze icon directories in alphabetic order, so that numeric directory names are always identified first.
[GB.FORM]
* BUG: Stock: Analyze icon directories in alphabetic order, so that numeric directory names are always identified first.
2020-04-16 09:49:21 +02:00
gambas
b0eb952028 '&=' on variants is not incorrectly optimized anymore.
[INTERPRETER]
* BUG: '&=' on variants is not incorrectly optimized anymore.

[GB.JIT]
* BUG: '&=' on variants is not incorrectly optimized anymore.
2020-04-16 09:47:59 +02:00
Tobias Boege
b0534ada26 Merge remote-tracking branch 'christof/testing-system-tof1' into testing-system 2020-04-14 20:40:59 +02:00
Christof Thalhofer
25fbe40ea6 Taskell Kanboard
Taskell is a somewhat bulky kanboard for the commandline, but for me
seems to be sufficient to organize the few things we have to do until
3.15.
2020-04-12 10:38:02 +02:00
Christof Thalhofer
2e9e94903b unittesthelloworld update neue tests 2020-04-10 15:43:46 +02:00
Christof Thalhofer
294194557b gbtest.Test FIXME comment 2020-04-10 13:52:56 +02:00
Christof Thalhofer
dcce00e674 gbt3: updated to new name and behavior of Test-Main() 2020-04-10 13:51:48 +02:00
Christof Thalhofer
254251b2f7 refact 2020-04-10 11:15:17 +02:00
gambas
d6cf0e8fb4 Fix the tab order of the control toolbox.
[DEVELOPMENT ENVIRONMENT]
* BUG: Fix the tab order of the control toolbox.

[GB.WEB.GUI]
* NEW: WebListBox is a new listbox control.
2020-04-09 10:53:31 +02:00
Christof Thalhofer
72c2c1e158 TestFailures report ok now, new TestCrashes
Tests in TestCrashes fail and must be reported as failed
2020-04-09 08:13:09 +02:00
Christof Thalhofer
dfcfac6172 Assert.ReverseNext
Turns the result of the following assertion the other way round
2020-04-09 08:09:53 +02:00
gambas
812cd85c9d Merge branch 'master' of gitlab.com:gambas/gambas 2020-04-08 21:27:58 +02:00
gambas
68c503bc2e Enabling an already enabled timer has no effect anymore.
[INTERPRETER]
* BUG: Enabling an already enabled timer has no effect anymore.
2020-04-08 21:27:27 +02:00
Tobias Boege
ab26124aa4 Search for wide-character ncurses when configuring
[CONFIGURATION]
* BUG: gb.ncurses now compiles on systems which only provide wide-character versions of ncurses pkg-config files.
2020-04-08 17:58:55 +02:00
gambas
b737880ee6 Add command-line options to find or replace a string in all wiki pages.
[WIKI]
* NEW: Add command-line options to find or replace a string in all wiki pages.
2020-04-08 14:06:36 +02:00