Commit graph

2648 commits

Author SHA1 Message Date
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
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
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
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
254251b2f7 refact 2020-04-10 11:15:17 +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
Christof Thalhofer
815a1ddcf2 TestCommand parsing done, but system still buggy
Without "Debug oTest.Name" in TestSuite.class:39 it would silently crash anywhere
after TestNoMessage is done without printing any single character. Reason is
"Assert.BailOut" in TestSuite:51 which miraculously does nothing.

If the testsystem itself crashes, ist must print "BailOut ..."

But here also can be seen, why the system has to print every assertion immediately.
Any bufferíng is bad because if the testsystem crashes the buffered results are gone.

So we must get rid of the buffered stream thing and go back to Print scattered all over ;-)
2020-04-08 12:39:55 +02:00
Christof Thalhofer
ce56c1ddb4 New signature of Test.Main(), not really functional
I'm goin to bed, just to backup my work to Gitlab
2020-04-08 00:46:09 +02:00
Christof Thalhofer
33641cac1b TestCommand Parser
Parses the string that containes testmodules and -methods. The parser is tested in TestInternals.
2020-04-08 00:40:14 +02:00
Christof Thalhofer
728194b3da Rename Unittest to Test 2020-04-07 16:48:46 +02:00
Tobias Boege
84e9792043 gb.test: remove self-test concept
[GB.TEST]
* OPT: Remove the concept of self-tests. Since ".../.test" exists there is no need to distinguish their tests and ours anymore.
2020-04-07 15:08:54 +02:00
Tobias Boege
6144a78829 gb.test: fix Assert.ErrorCode and Teardown spelling
[GB.TEST]
* BUG: Forward Description in Assert.ErrorCode.
* BUG: Fix spelling of TearDown -> Teardown special test method.
* OPT: Use Assert.Note() instead of Print in tests.
2020-04-07 15:08:54 +02:00
Tobias Boege
2489001ca4 gb.test: restore failing self-tests
[GB.TEST]
* NEW: Errors in tests are caught again.
* OPT: Shorten StringEquals diagnostics.
2020-04-07 15:08:46 +02:00
Tobias Boege
a4e233d4be Move gb.test.tap into gb.test
[GB.TEST]
* NEW: Merge gb.test.tap classes.

[DEVELOPMENT ENVIRONMENT]
* NEW: Remove mention of gb.test.tap.

[CONFIGURATION]
* NEW: Remove gb.test.tap.
2020-04-07 12:32:48 +02:00
gambas
2165ececd5 JIT optimization of '&=' has been implemented.
[INTERPRETER]
* NEW: Support for JIT '&=' optimization.
* BUG: Fix '&=' optimization on argument variables.
* OPT: Strings greater than 4096 bytes are allocated by 4096 bytes steps.

[GB.JIT]
* NEW: JIT optimization of '&=' has been implemented.
2020-04-06 04:43:12 +02:00
gambas
c2794f536c Add and update some stock icons.
[GB.FORM]
* NEW: Add 'layout', 'new-tag' and 'tag' stock icons.

[GB.FORM.STOCK]
* NEW: Add 'layout', 'new-tag' and 'tag' stock icons.
* NEW: Update 'jump', 'make' and 'make-all' icons.
2020-03-27 02:20:30 +01:00
gambas
fb1ee7d923 Fix a typo in WebMenu properties declaration.
[GB.WEB.FORM]
* BUG: Fix a typo in WebMenu properties declaration.
2020-03-21 04:36:49 +01:00
gambas
66f2b07c1f Response.SendFile() now correctly deals with relative paths.
[GB.WEB]
* NEW: Response.SendFile() now correctly deals with relative paths.
2020-03-21 04:29:46 +01:00
gambas
37db818d3d The 'gb.web.form2' component has been renamed as 'gb.web.gui'. Support for popup menus and stock icons were added.
[GB.WEB.GUI]
* NEW: This is the new name of 'gb.web.form2'.
* NEW: Support for popup menus.
* NEW: Support for stock icons.

[GB.WEB.FORM2]
* NEW: Rename the component as 'gb.web.gui'.
2020-03-21 04:27:05 +01:00
gambas
a59dfb169c CSVFile: Charset now can be specified.
[GB.UTIL]
* NEW: CSVFile: Charset now can be specified. If not specified, the first line of the files is used to guess if it could be WINDOWS-1252, or otherwise UTF-8.
2020-03-13 21:36:11 +01:00
gambas
8e241d9888 Fix WebTabPanel.Count and add WebTabPanel.Remove().
[GB.WEB.FORM2]
* BUG: WebTabPanel: Count property can be made smaller.
* NEW: WebTabPanel: Remove() is a new method that removes a tab from its index.
2020-03-10 15:22:21 +01:00
gambas
7933e4ed4a Support for debugger.
[GB.WEB.FORM2]
* BUG: Use SIGUSR2 for synchronizing session process with CGI process, as SIGUSR1 is used by the debugger.
* NEW: Support for debugger.
* NEW: THe HTML body now uses sans-serif font by default.
2020-03-09 02:23:09 +01:00
gambas
42a3da7510 Use version stored in VERSION file.
[GB.TEST.TAP]
* NEW: Use version stored in VERSION file.
2020-03-07 23:18:37 +01:00
gambas
2e02a644c2 Support for switching the main form.
[GB.WEB.FORM2]
* NEW: WebForm: Current is a new static property that return or set the main form.
* NEW: WebForm: Goto() is a new static method that switch the Current property.
* NEW: WebForm: Reload() is a new method that reload the form if it is the main one. Otherwise it calls Refresh().
2020-03-07 14:40:26 +01:00
gambas
550900d8f2 Fix compatibility with replaced Session class.
[GB.WEB.FORM2]
* NEW: Session: Fix compatibility with replaced Session class, with support for array accessor, Exist method and Prefix property.
* NEW: Session: Remove Dir property. Session.Path was done for that.
* BUG: Calling Session.Abandon now quits the session process immediately.
* BUG: WebTimer: The Refresh() method now does nothing.
2020-03-07 13:25:44 +01:00
gambas
bfc455070e Support for the Session class, and add WebForm.Current property to allow to change the application main form.
[GB.WEB.FORM2]
* NEW: DateBox: Open calendar popup on mouse down.
* NEW: Override the Session class, so that its methods that do not have any sense with 'gb.web.form2' do nothing anymore.
* NEW: WebForm.Current is a new property that allows to define the main form of the application that fills its HTML page.
* NEW: Session.Dir is a new property that returns the session directory. It is now '/tmp/gambas.<userid>/session/gb.web.form2'.
* NEW: Session.Timeout is taken into account by session processes.
* BUG: Window titles do not wrap anymore.
2020-03-07 01:30:44 +01:00
Benoît Minisini
d0650b8de2 Merge branch 'gb.test.tap' into 'master'
gb.test.tap

See merge request gambas/gambas!137
2020-03-06 01:10:48 +00:00
gambas
7cc8a1d41f Forgot the moved XTerm files.
[GB.FORM.TERMINAL]
* BUG: Forgot the moved XTerm files.
2020-03-06 00:27:59 +01:00
gambas
1e4b387a2a TerminalView: Terminal output processing is now delayed until the control is visible and has been arranged, so that the terminal width is accurate.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Terminal output processing is now delayed until the control is visible and has been arranged, so that the terminal width is accurate.
* BUG: Move XTerm files to the hidden project directory.
* NEW: TerminalView: Automatic scrolling is disabled when the last terminal line is hidden.
* OPT: TerminalView: Automatic scrolling is not smooth anymore.
2020-03-06 00:26:53 +01:00
gambas
b7c933227c Date.ToISO8601() is a new function that converts a date to ISO-8601 format.
[GB.UTIL]
* NEW: Date.ToISO8601() is a new function that converts a date to ISO-8601 format.
2020-03-06 00:21:33 +01:00
gambas
0d720dc608 Add 'gb.signal' as component dependency.
[GB.WEB.FORM2]
* BUG: Add 'gb.signal' as component dependency.
2020-03-04 01:39:07 +01:00
gambas
066f919a04 Add WebSlider control.
[GB.WEB.FORM2]
* NEW: Add WebSlider control.
2020-03-03 23:54:52 +01:00
gambas
c4db969cb6 Redraw the coloured 'halt' icon.
[GB.FORM.STOCK]
* NEW: Redraw the coloured 'halt' icon.
2020-03-03 23:34:37 +01:00
gambas
58046bcfad TerminalView: Add the ReadOnly property, and add a 2 pixels margin around the terminal contents.
[GB.FORM.TERMINAL]
* NEW: TerminalView: Add a new popup menu entry to select all the text.
* NEW: TerminalView: Add a 2 pixels margin around the terminal contents.
* NEW: TerminalView: ReadOnly is a new property that makes the TerminalView ignore keyboard input.
2020-03-03 23:29:12 +01:00
gambas
1f9364d131 Update project titles.
[GB.WEB.FORM]
* NEW: Update project title.

[GB.WEB.FORM2]
* NEW: Update project title.
2020-03-03 23:28:10 +01:00
Christof Thalhofer
3c09d70986 gb.test: Mv Flowchart into projects .hidden folder
[GB.TEST]
* BUG: Mv Flowchart into the projects hidden folder, alter flowchart a bit
2020-03-01 22:26:14 +01:00
gambas
401b04f5fc String.LeftPad() and String.RightPad() now align the padding pattern respectively to the left and to the right.
[GB.UTIL]
* NEW: String.LeftPad() and String.RightPad() now align the padding pattern respectively to the left and to the right.
2020-03-01 00:49:17 +01:00
gambas
7a377ebabc TextEditor: Add F3 and SHIFT+F3 shortcuts for searching forward and backward in the text search popup.
[GB.FORM.EDITOR]
* NEW: TextEditor: Add F3 and SHIFT+F3 shortcuts for searching forward and backward in the text search popup.
2020-03-01 00:05:59 +01:00
gambas
e1fbc01f12 ScrollArea: Do not show the shadows in some cases when they should not be visible.
[GB.GUI.BASE]
* BUG: ScrollArea: Do not show the shadows in some cases when they should not be visible.
2020-03-01 00:04:46 +01:00
gambas
342096ae0a Merge branch 'master' of gitlab.com:gambas/gambas 2020-02-29 20:23:20 +01:00
gambas
48e1929831 FileProperties: Adding a tab does not raise the Click event anymore.
[GB.FORM]
* BUG: FileProperties: Adding a tab does not raise the Click event anymore.
2020-02-29 20:22:50 +01:00
gambas
71d9c85887 String.PadLeft() and String.PadRight() are not inverted anymore when padding with one byte strings.
[GB.UTIL]
* BUG: String.PadLeft() and String.PadRight() are not inverted anymore when padding with one byte strings.
2020-02-29 20:16:56 +01:00