[Gambas-Notification] [Git][gambas/gambas][gb.test.tap] 18 commits: gbt3: Fix cherrypicking
Tobias Boege
gitlab at mg.gitlab.com
Thu Feb 27 20:35:22 CET 2020
Tobias Boege pushed to branch gb.test.tap at Gambas / gambas
Commits:
3752088d by Christof Thalhofer at 2020-02-24T14:08:40+01:00
gbt3: Fix cherrypicking
[GBT3]
* BUG: Fix selection of testmodule and testmethod
- - - - -
b8923a2b by gambas at 2020-02-25T03:19:16+01:00
Update many icons.
[GB.FORM.STOCK]
* NEW: Update many icons.
- - - - -
0a63c136 by gambas at 2020-02-25T03:19:34+01:00
Merge branch 'master' of gitlab.com:gambas/gambas
- - - - -
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.
- - - - -
30 changed files:
- app/src/gbt3/.project
- app/src/gbt3/.src/Main.module
- comp/src/gb.form.stock/gambas-mono/32/bottom.png
- comp/src/gb.form.stock/gambas-mono/32/first.png
- comp/src/gb.form.stock/gambas-mono/32/important.png
- comp/src/gb.form.stock/gambas-mono/32/indent.png
- comp/src/gb.form.stock/gambas-mono/32/last.png
- comp/src/gb.form.stock/gambas-mono/32/make-all.png
- comp/src/gb.form.stock/gambas-mono/32/make.png
- comp/src/gb.form.stock/gambas-mono/32/question.png
- comp/src/gb.form.stock/gambas-mono/32/replace.png
- comp/src/gb.form.stock/gambas-mono/32/save-as.png
- comp/src/gb.form.stock/gambas-mono/32/select-all.png
- comp/src/gb.form.stock/gambas-mono/32/select.png
- comp/src/gb.form.stock/gambas-mono/32/sort-ascent.png
- comp/src/gb.form.stock/gambas-mono/32/sort-descent.png
- comp/src/gb.form.stock/gambas-mono/32/text-baseline.png
- comp/src/gb.form.stock/gambas-mono/32/text-bottom.png
- comp/src/gb.form.stock/gambas-mono/32/text-center.png
- comp/src/gb.form.stock/gambas-mono/32/text-fill.png
- comp/src/gb.form.stock/gambas-mono/32/text-left.png
- comp/src/gb.form.stock/gambas-mono/32/text-middle.png
- comp/src/gb.form.stock/gambas-mono/32/text-right.png
- comp/src/gb.form.stock/gambas-mono/32/text-strike.png
- comp/src/gb.form.stock/gambas-mono/32/text-top.png
- comp/src/gb.form.stock/gambas-mono/32/text-underline.png
- comp/src/gb.form.stock/gambas-mono/32/top.png
- comp/src/gb.form.stock/gambas-mono/32/unindent.png
- comp/src/gb.form.stock/gambas-mono/32/view-detail.png
- comp/src/gb.form.stock/gambas-mono/32/view-normal.png
View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/f1868cdf2dce3a23cb9ace2e548be0f0667b4372...350d61cd8531921a869e98bf6ad324a7883e3f40
--
View it on GitLab: https://gitlab.com/gambas/gambas/-/compare/f1868cdf2dce3a23cb9ace2e548be0f0667b4372...350d61cd8531921a869e98bf6ad324a7883e3f40
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/20200227/df613dfc/attachment.html>
More information about the Notification
mailing list