-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
new featureNew feature or requestNew feature or request
Description
Summary
By adding test code, you can verify that the code works properly. It is also possible to find defects.
Pain points
Currently, you have to check whether a program is operating according to specifications, whether it is due to your implementation, or whether it is due to a bug.
This feature will make it easier to check the general operating status.
Considered Alternatives
- Write the documentation to show which parts of the system work
With this method, each person needs to write and check the code to confirm that it works. Note that this is an inconsistent operation check. It also requires time and effort to write documentation. Once the test code is implemented, there is no need for everyone to write the code again.
Is this a breaking change?
No
Library Examples
No response
Additional Context
The following items would need to be considered
- Is it necessary to make this change now?
I think it should be done when the framework design is finalized. We do not want to rewrite the test code too often. - To what extent the test code needs to be implemented
In my opinion, it is sufficient to test that it can be executed without throwing errors and that it returns values. I am concerned that writing too much test code will make it difficult to maintain. - Which testing framework to choose?
I think Swift Testing is the best choice for this package, but the problem is that the official version supports Swift 6.0 or later. There may be an option to use other open source testing frameworks.
If you choose to implement this using Swift Testing, I would be happy to write this code, even though I know it is not perfect.
Metadata
Metadata
Labels
new featureNew feature or requestNew feature or request
Projects
Status
Todo