Repository navigation
Conversation
IanTrudel
commented
Apr 20, 2024
- Provides a TestCase, TestSuite, TestReporter and a Mock class.
- Testing is bootstrapped using the new unittest package to test the said package.
- Provides a TestCase, TestSuite, TestReporter and a Mock class. - Testing is bootstrapped using the new unittest package to test the said package.
- Simplification suggested by @Jafaral. - Reordered assertions in Mock.testExpect().
- `assertEqual()` now expects `expected` and `actual` to be of the same type based on the feedback from @Jafaral. - Implemented `assertFail` and `assertNotEqual()`, and corresponding tests.
- Reworked the results tally in TestReporter and returned in the `summary()` method. - Added tests for the TestReporter.
- Completing TestTestSuite run tests and assertion failure tests. - Adding a few more assertions. - Tidying up the output.
- Inspired from `tests/unicon/tester.icn` - Example output: ran 20 tests in 2.004114s
A Unicon Techincal Report for the Unicon Unit Testing Framework including: - Introduction - Components of the framework - Unit test examples - References
|
It is better to rebase your branch on top of the master branch instead of merging. |
Will do next time. Thank you! |
- Documenting the Mock class with an example.
|
@Jafaral sorry about the merge. I did set git to rebase but something clearly went wrong. |
|
@Jafaral I resent you an invite to my fork. Would you be so kind to arrange so this can be merged? Otherwise I can redo it using rebase. My next contribution is in the works but I will be careful this turn around. :)) |
|
@IanTrudel , I pushed a new branch to your repo with rebase and cleanup of your work. See the new PR I opened from your repo. Feel free to checkout the new branch at your end and make changes as you see fit. |
|
As a summary, here is what I did:
|
|
Continued in #507 |