Skip to content

RFC: Implement tests #11

@taneliang

Description

@taneliang

Test coverage is a miserable 20%, and we definitely want to increase that. However, as a lot of the code does code generation, the typical unit test approach won't work as that will not test the generated code.

Possible implementations

  • Only use integration tests for code generating code and on generated code. Have tests generate files, and write other tests for the generated files. This will allow Jest to calculate the test coverage of both the generating and generated code.
  • Generate tests. This will also help Gent users to increase their code coverage without having to write tests for all that generated code. This will likely become messy though due to the amount of generated code required, and the test generators will likely also need to be tested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions