Skip to content

Introducing Unit Test Framework - #432

Closed
IanTrudel wants to merge 18 commits into
uniconproject:masterfrom
IanTrudel:master
Closed

IanTrudel wants to merge 18 commits into
uniconproject:masterfrom
IanTrudel:master

Conversation

@IanTrudel

Copy link
Copy Markdown
Contributor
  • 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.
@IanTrudel IanTrudel mentioned this pull request Apr 20, 2024
18 tasks done
Comment thread uni/lib/unittest.icn Resolved
Comment thread uni/lib/unittest.icn Resolved
Comment thread uni/lib/unittest.icn Resolved
- Simplification suggested by @Jafaral.
- Reordered assertions in Mock.testExpect().
@Jafaral Jafaral changed the title Initial commit for Unicon Unit Test Framework Introduce Unit Test Framework Apr 25, 2024
- `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
@IanTrudel IanTrudel changed the title Introduce Unit Test Framework Introducing Unit Test Framework Apr 29, 2024
@IanTrudel
IanTrudel marked this pull request as ready for review May 4, 2024 22:14
IanTrudel added 3 commits May 25, 2024 09:42
A Unicon Techincal Report for the Unicon Unit Testing Framework including:
- Introduction
- Components of the framework
- Unit test examples
- References
@Jafaral

Jafaral commented May 25, 2024

Copy link
Copy Markdown
Member

It is better to rebase your branch on top of the master branch instead of merging.

@IanTrudel

Copy link
Copy Markdown
Contributor Author

It is better to rebase your branch on top of the master branch instead of merging.

Will do next time. Thank you!

@IanTrudel

Copy link
Copy Markdown
Contributor Author

@Jafaral sorry about the merge. I did set git to rebase but something clearly went wrong.

@IanTrudel

Copy link
Copy Markdown
Contributor Author

@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. :))

@Jafaral

Jafaral commented Feb 23, 2025

Copy link
Copy Markdown
Member

@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.

@Jafaral

Jafaral commented Feb 23, 2025

Copy link
Copy Markdown
Member

As a summary, here is what I did:

  • rebase
  • squashed intermediate fixes into their respective commits.
  • cleaned up some formatting.

@Jafaral

Jafaral commented Feb 23, 2025

Copy link
Copy Markdown
Member

Continued in #507

@Jafaral Jafaral closed this Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants