[Gambas-Notification] [Git][gambas/gambas][master] 51 commits: Move gb.test.tap into gb.test

Christof Thalhofer gitlab at mg.gitlab.com
Sun May 3 13:37:38 CEST 2020



Christof Thalhofer pushed to branch master at Gambas / gambas


Commits:
a4e233d4 by Tobias Boege at 2020-04-07T12:32:48+02:00
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.

- - - - -
2489001c by Tobias Boege at 2020-04-07T15:08:46+02:00
gb.test: restore failing self-tests

[GB.TEST]
* NEW: Errors in tests are caught again.
* OPT: Shorten StringEquals diagnostics.

- - - - -
71b5ca12 by Tobias Boege at 2020-04-07T15:08:54+02:00
gbt3: use TestHarness

[TESTER]
* NEW: Use gb.test's TestHarness to parse TAP.
* BUG: Do not overwrite existing classes when generating temporary startup class.
* OPT: Prefer Exec over Shell.

- - - - -
6144a788 by Tobias Boege at 2020-04-07T15:08:54+02:00
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.

- - - - -
84e97920 by Tobias Boege at 2020-04-07T15:08:54+02:00
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.

- - - - -
728194b3 by Christof Thalhofer at 2020-04-07T16:48:46+02:00
Rename Unittest to Test

- - - - -
33641cac by Christof Thalhofer at 2020-04-08T00:40:14+02:00
TestCommand Parser

Parses the string that containes testmodules and -methods. The parser is tested in TestInternals.

- - - - -
ce56c1dd by Christof Thalhofer at 2020-04-08T00:46:09+02:00
New signature of Test.Main(), not really functional

I'm goin to bed, just to backup my work to Gitlab

- - - - -
815a1ddc by Christof Thalhofer at 2020-04-08T12:39:55+02:00
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 ;-)

- - - - -
dfcfac61 by Christof Thalhofer at 2020-04-09T08:09:53+02:00
Assert.ReverseNext

Turns the result of the following assertion the other way round

- - - - -
72c2c1e1 by Christof Thalhofer at 2020-04-09T08:13:09+02:00
TestFailures report ok now, new TestCrashes

Tests in TestCrashes fail and must be reported as failed

- - - - -
254251b2 by Christof Thalhofer at 2020-04-10T11:15:17+02:00
refact

- - - - -
dcce00e6 by Christof Thalhofer at 2020-04-10T13:51:48+02:00
gbt3: updated to new name and behavior of Test-Main()

- - - - -
29419455 by Christof Thalhofer at 2020-04-10T13:52:56+02:00
gbtest.Test FIXME comment

- - - - -
2e9e9490 by Christof Thalhofer at 2020-04-10T15:43:46+02:00
unittesthelloworld update neue tests

- - - - -
25fbe40e by Christof Thalhofer at 2020-04-12T10:38:02+02:00
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.

- - - - -
b0534ada by Tobias Boege at 2020-04-14T20:40:59+02:00
Merge remote-tracking branch 'christof/testing-system-tof1' into testing-system

- - - - -
35cac905 by Tobias Boege at 2020-04-25T05:45:42+02:00
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.

- - - - -
acc8f110 by Tobias Boege at 2020-04-25T05:48:28+02:00
gb.test: Rename ReverseNext to IntendedFailure

IMHO a more descriptive name. One can "reverse" so many things.

- - - - -
12d39c87 by Tobias Boege at 2020-04-25T11:42:19+02:00
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.

- - - - -
aeef68ee by Tobias Boege at 2020-04-25T11:42:19+02:00
gb.test: Rename ReverseNext to IntendedFailure

IMHO a more descriptive name. One can "reverse" so many things.

- - - - -
8ff76cb2 by Christof Thalhofer at 2020-04-25T11:42:19+02:00
gb.test and gbt3 some refactoring and future tasks

- - - - -
9870741d by Christof Thalhofer at 2020-04-25T20:19:53+02:00
Tasks to do until gb.test is done so far

- - - - -
e5c9b3c1 by Christof Thalhofer at 2020-04-25T21:28:51+02:00
gb.test and gbt3 some refactoring and future tasks

- - - - -
b640e511 by Christof Thalhofer at 2020-04-25T21:28:51+02:00
Tasks to do until gb.test is done so far

- - - - -
470cdf7c by Christof Thalhofer at 2020-04-25T21:29:49+02:00
Merge branch 'testing-system' of ssh://gitlab.com/christhal/gambas into testing-system

- - - - -
24ef4c8c by Christof Thalhofer at 2020-04-26T10:41:35+02:00
Fix: BailOut stops all tests

- - - - -
7d554993 by Christof Thalhofer at 2020-04-26T10:44:59+02:00
Better readability of TAP output for humans

... I mean elder humans, like me

- - - - -
f36f6561 by Christof Thalhofer at 2020-04-26T10:48:30+02:00
selftests: get rid of old plans

- - - - -
d02c023e by Christof Thalhofer at 2020-04-26T11:03:53+02:00
TestFailures and TestSummary updated

- - - - -
d7a478cc by Christof Thalhofer at 2020-04-26T11:23:01+02:00
Fix: Test bails out if testmodule doesn't exist

- - - - -
127eb073 by Christof Thalhofer at 2020-04-26T12:07:56+02:00
Merge remote-tracking branch 'upstream/master' into testing-system

- - - - -
750a6057 by Christof Thalhofer at 2020-04-26T12:49:06+02:00
Taskell next task todo and skip

Both are not implemented well but necessary for summary

- - - - -
7712c62e by Christof Thalhofer at 2020-04-26T13:07:31+02:00
taskell better explanation

- - - - -
c306e9a5 by Christof Thalhofer at 2020-04-27T12:01:47+02:00
Fix: Free Assert from non-assertions

Assert free from non-assertions. Also Assert and Test now are
modules.

- - - - -
0943f349 by Christof Thalhofer at 2020-04-28T09:36:44+02:00
taskell updated: Todo exists

- - - - -
098c5915 by Christof Thalhofer at 2020-04-28T12:17:02+02:00
New Bug: Directives are never stored.

This must be fixed before Summary can be created.

- - - - -
7d480229 by Christof Thalhofer at 2020-05-01T10:42:29+02:00
Rewrite TestSummary and TestMe

TestSummary.DoSomeAsserts, DoTodo and DoSkip succeed

- - - - -
4c2a4f47 by Tobias Boege at 2020-05-01T15:57:53+02:00
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.

- - - - -
3cf670ef by Christof Thalhofer at 2020-05-01T18:59:20+02:00
Test.PrintSummary: Result in the last line

- - - - -
91c4ce26 by Christof Thalhofer at 2020-05-02T11:53:30+02:00
started documentation and task hide symbols

- - - - -
6b2f8ec1 by Christof Thalhofer at 2020-05-02T15:27:35+02:00
delete redundant TestSetupTeardown.test

- - - - -
178ce9c2 by Christof Thalhofer at 2020-05-02T15:28:30+02:00
Remove TestSetupTeardown in TestMe also

- - - - -
2c111a14 by Christof Thalhofer at 2020-05-02T17:20:42+02:00
Assert documentation – not fully done

Left descrition of Approximate and RelativeApproximate to a mathematician..
;-)

- - - - -
36b2e39e by Christof Thalhofer at 2020-05-02T17:22:58+02:00
Test Assert.Like

- - - - -
08d798c1 by Christof Thalhofer at 2020-05-02T18:35:48+02:00
hide Test.Finish and documentation

- - - - -
645f972b by Christof Thalhofer at 2020-05-03T07:36:31+02:00
README and tasks updated

- - - - -
fc2ad345 by Christof Thalhofer at 2020-05-03T07:42:45+02:00
README small fix

- - - - -
ed8f5b73 by Christof Thalhofer at 2020-05-03T10:35:29+02:00
gbt3: some fixes and tasks done

Returns exit code.

Doesn't print a summary any more as this is provided by gb.test.

Doesn't print blank line at the beginning any more. Plan has to be in
the first line.

Works fine with tappy (python TAP consumer)

Kills temporary startup file

- - - - -
c733083a by Christof Thalhofer at 2020-05-03T11:26:05+02:00
gbt3 install and task

- - - - -
f5dbf407 by Christof Thalhofer at 2020-05-03T11:42:47+02:00
gbt3: Fix. Raise error when path = Null, no sparse

- - - - -


30 changed files:

- app/src/INSTALL
- app/src/gambas3/.src/Component/CDocumentation.class
- app/src/gbt3/.project
- app/src/gbt3/.src/Main.module
- − comp/src/gb.test.tap/.component
- − comp/src/gb.test.tap/.directory
- − comp/src/gb.test.tap/.icon.png
- − comp/src/gb.test.tap/.project
- − comp/src/gb.test.tap/.src/Main.module
- − comp/src/gb.test.tap/.src/SampleTest.module
- − comp/src/gb.test.tap/.src/Tap/TapPrinter.class
- comp/src/gb.test/.component
- + comp/src/gb.test/.hidden/summary-example.txt
- comp/src/gb.test/.icon.png
- comp/src/gb.test/.project
- comp/src/gb.test.tap/.src/Tap/Tap.module → comp/src/gb.test/.src/Tap/Tap.module
- + comp/src/gb.test/.src/Tap/TapContext.class
- comp/src/gb.test.tap/.src/Tap/TapParser.class → comp/src/gb.test/.src/Tap/TapParser.class
- + comp/src/gb.test/.src/Tap/TapPrinter.class
- + comp/src/gb.test/.src/TestAssertion.class
- comp/src/gb.test.tap/.src/TestHarness.class → comp/src/gb.test/.src/TestHarness.class
- comp/src/gb.test/.src/TestMe.module
- comp/src/gb.test/.src/TestMyself/TestAllAsserts.test
- comp/src/gb.test/.src/TestMyself/TestBailout.test
- + comp/src/gb.test/.src/TestMyself/TestCrashes.test
- comp/src/gb.test/.src/TestMyself/TestElse.test
- comp/src/gb.test/.src/TestMyself/TestEmpty.test
- comp/src/gb.test/.src/TestMyself/TestError.test
- comp/src/gb.test/.src/TestMyself/TestFailures.test
- + comp/src/gb.test/.src/TestMyself/TestInternals.test


View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/c4433379731c79c7812b2bb47e4e1b020f528fcb...f5dbf4074e326a3af508684995ca81ae0fc07f76

-- 
View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/c4433379731c79c7812b2bb47e4e1b020f528fcb...f5dbf4074e326a3af508684995ca81ae0fc07f76
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/notification/attachments/20200503/3e637c44/attachment-0001.html>


More information about the Notification mailing list