Commit graph

6604 commits

Author SHA1 Message Date
Tobias Boege
3681e003d6 Merge remote-tracking branch 'gb.unittest/TAP' into gb.test
[GB.TEST]
* NEW: Import (my fork of) Christof's gb.unittest from github as a new gb.test component
2018-05-18 23:41:16 +02:00
Tobias Boege
6a90351e0d Start the Assert module 2018-05-18 23:14:43 +02:00
Tobias Boege
1c2d0b4d8e TapPrinter: add properties
Properties Output, Plan, Count and Last were added to read the current
test state (plan, how many tests were run, the test number of the last
run test). In particular, allow the reconfiguration of the Output stream
after the object is created.
2018-05-18 23:12:15 +02:00
gambas
e528f3441a Fix compilation with poppler < 0.64.
[GB.PDF]
* BUG: Fix compilation with poppler < 0.64.
2018-05-16 02:24:20 +02:00
Tobias Boege
0893ca7dee gb.pdf: Fix compilation with older popplers
[GB.PDF]
* BUG: Fix compilation with older popplers
2018-05-16 02:04:47 +02:00
Adrien Prokopowicz
6c9f64666a
[GB.XML]
* BUG: Fix the XmlNode.GetElementsByAttributeValue() method.
2018-05-16 01:43:21 +02:00
Tobias Boege
fdf8fa658f gb.pdf: Compile with poppler 0.64
[GB.PDF]
* NEW: Add many consts to compile with poppler 0.64. Partial patch thanks to Tony Morehen
2018-05-15 21:27:51 +02:00
gambas
6858457dbb Automatic completion: Don't crash when completing an unreadable directory.
[DEVELOPMENT ENVIRONMENT]
* BUG: Automatic completion: Don't crash when completing an unreadable directory.
2018-05-14 01:18:11 +02:00
Benoît Minisini
df6bf93820 Merge branch 'master' into 'master'
This commit contains bug fix for the Chart component.

See merge request gambas/gambas!18
2018-05-13 21:20:21 +00:00
Adrien Prokopowicz
2ac99a0f2a
[GB.XML]
* BUG: Fix reading XML comments and CDATA tags when they contain
characters that belong to the end tag while not forming a complete one.
* BUG: Fix returning value of XML comments.

[GB.XML.HTML]
* BUG: Fix reading lowercase HTML doctypes.
2018-05-13 15:49:00 +02:00
gambas
dce6496cd9 Use text colors and not tooltip colors for form & image editors' information panel. Tooltip colors are sometimes unreadable.
[DEVELOPMENT ENVIRONMENT]
* NEW: Form editor: Use text colors and not tooltip colors for information panel. Tooltip colors are sometimes unreadable.
* NEW: Image editor: Use text colors and not tooltip colors for information panel.
2018-05-12 19:41:48 +02:00
gambas
2c2146d594 Merge branch 'master' of gitlab.com:gambas/gambas 2018-05-12 19:40:38 +02:00
gambas
352bf8230d Fix use of QFont::setStyleName()
[GB.QT4]
* BUG: Don't use QFont::setStyleName() if Qt version is not at least 4.8.

[GB.QT5]
* BUG: Call QFont::setStyleName() last, as it may be buggy if Qt version is not at least 5.3.
2018-05-12 19:38:38 +02:00
Benoît Minisini
386edd1f79 Merge branch 'patch-2' into 'master'
fix forgotten conditional, not property a bug, conserves minimal build requirements

See merge request gambas/gambas!20
2018-05-12 13:07:30 +00:00
PICCORO Lenz McKAY
7e622ba756 fix forgotten conditional, not property a bug, conserves minimal build requirements 2018-05-11 20:21:10 +00:00
gambas
d552008415 Add a flag for enabling link time optimization, and disable it by default.
[CONFIGURATION]
* NEW: Add a flag for enabling link time optimization, and disable it by default.
2018-05-10 09:13:15 +02:00
gambas
1701be8a34 Open project dialog: Always select the project filter text.
[DEVELOPMENT ENVIRONMNENT]
* BUG: Main window: Fix an english mistake in a menu entry.
* NEW: Open project dialog: Always select the project filter text.
2018-05-09 01:18:13 +02:00
gambas
14614f4e67 Check if the "-flto" link time optimzation flag is available.
[CONFIGURATION]
* BUG: Check if the "-flto" link time optimzation flag is available.
2018-05-08 18:44:31 +02:00
gambas
85376261ea DateBox: The time popup works correctly again.
[GB.FORM]
* BUG: DateBox: The time popup works correctly again.
2018-05-07 22:20:01 +02:00
Tobias Boege
6a77f9f2c5 Only use tag in trunk_version.h if it is *exactly* that commit
[CONFIGURATION]
* BUG: Only use tag in trunk_version.h if it is *exactly* that commit
2018-05-05 18:07:50 +02:00
Tobias Boege
9ed904241f Print git tag instead of branch name in trunk_version.h if available
[CONFIGURATION]
* NEW: Print git tag instead of branch name in trunk_version.h if available
2018-05-05 17:56:29 +02:00
Tobias Boege
e4bfb99a47 Generate trunk_version.h with detached HEAD
[CONFIGURATION]
* BUG: Generate trunk_version.h with detached HEAD
2018-05-05 17:56:29 +02:00
Davidmue
f61ff5e8b6 This commit contains bug fix for the Chart component.
[GB.CHART]
* BUG: Fixed a bug in Chart class.
  A more complex calculated id is now used. This let us use more than one chart.
* BUG: Fixed a bug in _CSerie class.
  A call to an unexisting property Labels has been changed.
2018-05-05 11:02:05 +02:00
gambas
a9f852d5c5 Farm client: Compile the project before publishing it, so that the project version is accurate in the case it is read from a VERSION file.
[DEVELOPMENT ENVIRONMENT]
* BUG: Farm client: Compile the project before publishing it, so that the project version is accurate in the case it is read from a VERSION file.
* BUG: Property sheet button icon is now different from project properties button icon.
2018-05-04 18:54:34 +02:00
gambas
7239cbe35e SmtpClient: Fix the sent date header.
[GB.NET.SMTP]
* BUG: SmtpClient: Fix the sent date header.
2018-05-02 17:05:16 +02:00
gambas
90b70ed78b The 'Clear all breakpoints' menu entry works again.
[DEVELOPMENT ENVIRONMENT]
* BUG: The 'Clear all breakpoints' menu entry works again.
2018-05-01 17:45:51 +02:00
gambas
f57ffd7354 Automatic completion: SUPER and ME always show all hidden symbols and update source archive exclude list.
[DEVELOPMENT ENVIRONMENT]
* NEW: Automatic completion: SUPER and ME always show all hidden symbols.
* NEW: Option dialog: Remove unused source archive configuration.
* NEW: Update source archives exclude list.
* BUG: Project tree: Modified classes correctly update their form icons.
* NEW: Update support file.
2018-04-28 16:00:12 +02:00
gambas
20f650aa59 Shortcut configuration dialog: Use the Shortcut class and display action icons correctly.
[GB.FORM.MDI]
* NEW: Shortcut configuration dialog: Use the Shortcut class.
* BUG: Shortcut configuration dialog: Display action icons correctly.
2018-04-28 15:54:33 +02:00
gambas
93fe4c8ae2 Shortcut: Write modifier keys with the first letter capitalized only.
[GB.GUI.BASE]
* BUG: Shortcut: Write modifier keys with the first letter capitalized only.
2018-04-28 15:53:17 +02:00
Tobias Boege
888e880c23 Implement TestHarness
TestHarness is a class which runs multiple tests and collects statistics
about them. It is inspired by perl's Test::Harness. It is the main
component of a program which tests other programs which output TAP.

The current design I'm implementing requires that unit tests are
implemented in classes outside of the unit they are testing, for the
following reasons:

  1. You should only test public interface anyway. Even if it is
     sometimes simpler to implement a test using private data of
     an object:
  2. It makes the class unnecessarily big and exposes methods which
     you don't want/need for a release.

This base class for implementing tests comes next. Tests are run in
an external process, by using the test as a startup class. This has
the benefit that the test harness isn't affected by a crash in the
test. It would be nice to have special treatment of tests in the
project directory structure, to list all tests in a project reliably
from the outside. IDE and compiler could benefit from that as well.
2018-04-27 01:15:15 +02:00
Tobias Boege
0929707aee Low-level printer and parser for TAP format
The Test Anything Protocol (TAP) is a text-based format for communicating
unit test results. It originated from perl and has a specification here:
http://testanything.org/
2018-04-25 13:05:09 +02:00
Christof Thalhofer
2d591f341b Refact 2018-04-22 15:38:27 +02:00
Christof Thalhofer
80127af1c2 Readme 2018-04-22 15:24:23 +02:00
Christof Thalhofer
4a8c8c7efb delete old gb.deg.unittest 2018-04-22 15:16:16 +02:00
Christof Thalhofer
129ff730a6 Correct TAP output 2018-04-22 15:13:55 +02:00
Christof Thalhofer
d96cd5c673 Unittest without GUI and with TAP output 2018-04-22 14:38:09 +02:00
Christof Thalhofer
9d038cd8ed Start developing gb.unittest
I first keep the two projects gb.deg.unittest and gb.unittest in parallel.
2018-04-22 12:08:31 +02:00
Christof Thalhofer
c5f1321f96 Last Version of gb.deg.unittest
Will be rewritten to gb.unittest
2018-04-22 12:02:31 +02:00
Christof Thalhofer
2904638697 Unittest.ShowTestForm ist static 2018-04-21 22:50:57 +02:00
Christof Thalhofer
f702aea4b1 Merged ATestContainer and UnitTest, static Run()
like Benoît recommended in
https://lists.gambas-basic.org/pipermail/user/2018-April/063734.html
2018-04-21 22:30:01 +02:00
gambas
15cab715ac Search dialog: Do not crash anymore if the last searched window has been closed.
[DEVELOPMENT ENVIRONMENT]
* BUG: Search dialog: Do not crash anymore if the last searched window has been closed.
2018-04-21 20:41:05 +02:00
gambas
2b3cbd9217 TerminalView: Fix "EraseStartOfLine" VT-100 command and remove "Erase screen" optimization.
[GB.FORM.TERMINAL]
* BUG: TerminalView: Remove "Erase screen" optimization.
* BUG: TerminalView: Fix "EraseStartOfLine" VT-100 command.
2018-04-21 20:38:57 +02:00
gambas
9b52761613 DesktopFile: Properties should be correctly writable now.
[GB.DESKTOP]
* BUG: DesktopFile: Properties should be correctly writable now.
2018-04-21 15:31:09 +02:00
gambas
9fc9132b75 String controls can be used as toolbar expander now.
[DEVELOPMENT ENVIRONMENT]
* NEW: Move lock icons to the right of the toolbar.
* NEW: Remove some unused icons.
* BUG: Form editor: String controls can be used as toolbar expander now.
* NEW: Project tree: symbolic link emblem should be more visible now.
2018-04-20 18:31:02 +02:00
gambas
43285550c6 UTF-8 string routines position cache now should behave correctly in all cases.
[INTERPRETER]
* BUG: UTF-8 string routines position cache now should behave correctly in all cases.
2018-04-20 18:26:52 +02:00
gambas
6712de717c Support for case sensitive schema names.
[GB.DB]
* BUG: Support for case sensitive schema names.

[GB.DB.POSTGRESQL]
* BUG: Support for case sensitive schema names.
2018-04-18 03:17:30 +02:00
gambas
87f546bb81 Correctly quote table names when using schemas.
[GB.DB]
* BUG: Correctly quote table names when using schemas.
2018-04-16 20:57:56 +02:00
gambas
f0ad78cb1f Toolbar: Make the toolbar configuration dialog defaut size smaller.
[GB.FORM.MDI]
* NEW: Toolbar: Make the toolbar configuration dialog defaut size smaller.
2018-04-16 16:36:10 +02:00
gambas
aaeebacc2f DateBox: Clicking on a date automatically closes the date chooser popup.
[GB.FORM]
* NEW: DateChooser: Raise a Click event when a date is clicked in the inner calendar.
* NEW: DateBox: Clicking on a date automatically closes the date chooser popup.
2018-04-16 16:33:51 +02:00
gambas
cc96782eee Correctly quote field names everywhere and always display error balloons on the accurate cell.
[GB.DB.FORM]
* BUG: DataView: Always display the error balloon on the accurate cell.
* BUG: Correctly quote field names everywhere.
2018-04-16 16:31:44 +02:00