Skip to content
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

Testing #23

Open
Manu343726 opened this issue May 8, 2016 · 1 comment
Open

Testing #23

Manu343726 opened this issue May 8, 2016 · 1 comment

Comments

@Manu343726
Copy link
Owner

Manu343726 commented May 8, 2016

The library needs in depth testing for being relyable
and "serious" enough to be published. The following is a list of
priorities, of modules that should be covered by tests:

  1. Static reflection API:
    • Function, Field, Class, Enum. Most of this classes are just
      bridges to the generated code, so it's hard to add tests there. At least
      Enum has some functionality (fromString()/toString()) that needs to be
      tested.
    • At least black-box test the API for occurrencesof types, members, missing fields,
      etc. Check that the API gives right data from a given source.
  2. Dynamic reflection runtime:
    • Unit test Type: Registration, data, etc.
    • Unit test Object.
    • Unit test Object manipulation: Function invocation, assignment, etc.
    • Unit test Object pool. Consider a more relyable pool implementation (Ahem @foonathan).
    • Unit test automatic data registration: By default runtime dynamic reflection data should match
      that collected by static reflection API.
@Manu343726
Copy link
Owner Author

And more, and more, and moooooooore things need testing. I should be doing like a true TDD fan, writing tests first. Meanwhile, yes, having features not covered by tests is considered a bug. One of the worst bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment