[Gambas-Notification] [Git][gambas/gambas][master] 17 commits: gb.test.tap: New component for reading and writing TAP
Benoît Minisini
gitlab at mg.gitlab.com
Fri Mar 6 02:10:51 CET 2020
Benoît Minisini pushed to branch master at Gambas / gambas
Commits:
787674f1 by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
23516955 by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test.tap: More Assert methods
[GB.TEST.TAP]
* NEW: More Assert methods for compatibility with gb.test.
- - - - -
b583aeae by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test.tap: Support multiline diagnostics
[GB.TEST.TAP]
* NEW: Support multiline diagnostics.
- - - - -
4d285e8a by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test.tap: Fix "Expected" diagnostic in StringEquals
[GB.TEST.TAP]
* BUG: Fix "Expected" diagnostic in StringEquals.
- - - - -
622bd355 by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
185bbf57 by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
65da83b3 by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test.tap: Forgot Assert.BailOut
[GB.TEST.TAP]
* NEW: Add Assert.BailOut wrapper for the internal TapPrinter.
- - - - -
13dd1d25 by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
73eafee8 by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
3fdfbe3b by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
27cc0504 by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test.tap: Fix subtest summary
[GB.TEST.TAP]
* BUG: Correctly summarize subtest. In particular empty tests fail.
- - - - -
6c82b48a by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
679cb645 by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test.tap: Add more diagnostics
[GB.TEST.TAP]
* NEW: Add more diagnostics when Assert methods fail.
- - - - -
c9c99c00 by Tobias Boege at 2020-02-27T20:38:55+01:00
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.
- - - - -
350d61cd by Tobias Boege at 2020-02-27T20:38:55+01:00
gb.test: Restore BailOut on uncaught errors
[GB.TEST.TAP]
* NEW: Assert.SubtestLevel is a new property that returns the number of nested subtests.
* NEW: Assert.BailOut always unwinds the subtest stack and bails out of the entire TAP session.
* BUG: Tests can bail out even if Finished was called.
[GB.TEST]
* NEW: Bail out again if errors from test methods are caught.
* BUG: Don't call Finish on a subtest when it was already finished.
After the Bail out message, we Quit with non-zero exit status to signal
an abnormal termination to the harness.
- - - - -
548d7da1 by Tobias Boege at 2020-02-27T20:58:27+01:00
gb.test: Remove ITest, ITestCase leftovers
[GB.TEST]
* OPT: Remove the inheritance hierarchy of ITest and ITestCase.
They are no longer needed to identify tests.
- - - - -
d0650b8d by Benoît Minisini at 2020-03-06T01:10:48+00:00
Merge branch 'gb.test.tap' into 'master'
gb.test.tap
See merge request gambas/gambas!137
- - - - -
29 changed files:
- + 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/Assert.class
- + comp/src/gb.test.tap/.src/Main.module
- + comp/src/gb.test.tap/.src/SampleTest.module
- + comp/src/gb.test.tap/.src/Tap/Tap.module
- + comp/src/gb.test.tap/.src/Tap/TapParser.class
- + comp/src/gb.test.tap/.src/Tap/TapPrinter.class
- + comp/src/gb.test.tap/.src/TestHarness.class
- + comp/src/gb.test.tap/.src/TestStats.class
- comp/src/gb.test/.project
- 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/TestElse.test
- comp/src/gb.test/.src/TestMyself/TestError.test
- comp/src/gb.test/.src/TestMyself/TestFailures.test
- comp/src/gb.test/.src/TestMyself/TestSetup.test
- comp/src/gb.test/.src/TestMyself/TestSetupTeardown.test
- − comp/src/gb.test/.src/TestSuite/Assert.module
- − comp/src/gb.test/.src/TestSuite/ITest.class
- − comp/src/gb.test/.src/TestSuite/ITestCase.class
- comp/src/gb.test/.src/TestSuite/TestCase.class
- comp/src/gb.test/.src/TestSuite/TestSuite.class
- − comp/src/gb.test/.src/TestSuite/Track.module
- comp/src/gb.test/.src/TestSuite/UnitTest.class
- comp/src/order
View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/aa6196323668beaadd9cabee075318f9130ac1fe...d0650b8de21c0d6872565d4045f137502b921c7d
--
View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/aa6196323668beaadd9cabee075318f9130ac1fe...d0650b8de21c0d6872565d4045f137502b921c7d
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/20200306/97666f7f/attachment.html>
More information about the Notification
mailing list