-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicon Unit Test Framework #431
Comments
Can you open a draft PR with these for easy review and inline feedback? |
What workflow do you suggest? Clone or fork and then submit a PR? Which directory should these files go? unittest.icn is the package and tests.icn is the unit tests testing unittest package. |
We use Fork/PR workflow (here ). Who are you targeting with this package? The language developers? or the language users, writing their own applications in Unicon and using the package to write tests? If it is the former, then it should go under |
There you go, as you requested! #432 I haven't programmed in Icon since Ralph Griswold passed away and only few weeks with Unicon. There are most certainly a few things I would like to improve upon. Bootstrapping is the highlight at the moment, since the unittest package is used to test the unittest package. Looking forward to your feedback. |
Thank you @IanTrudel. We would love to grow the community and have more people contribute to Unicon. |
There is a working version updated in the draft with a reasonable test coverage. There is still a bit of work to do but the question is this worthy of a PR? The output looks like the following.
|
Is it possible to dynamically create methods and fields for a class? It would be helpful for the mocking of objects. What I have done at the moment is working but it's not as convenient as it could be. |
This is an early implementation of an Unicon Unit Test Framework. Your feedback would be invaluable. @cjeffery @StephenWampler @brucerennie @Jafaral
setupClass()
,teardownClass()
,setup
andteardown
.assertEqual(expected, actual)
,assertNotEqual(unexpected, actual)
,assert { expression }
andassertFail { expression }
.EXIT SUCCESS
when all tests pass.EXIT FAILURE
when one or more tests fail.The draft PR is located here: #432
unittest.icn
tests.icn
The text was updated successfully, but these errors were encountered: