Skip to content

generate a submodule to run pankti-generated test cases #22

@gluckzhang

Description

@gluckzhang

We may generate a submodule that contains all the pankti-generated test cases. The benefits of doing so include:

  • A good separation between original test cases and pankti-generated
  • Only Test*PanktiGen.java and object-data.xml need to be copied to the submodule, because this module depends on all the original submodules
  • No need to modify original pom files, because only this module needs xstream as a dependency

This is an example that I manually did for TTorrent: https://github.com/gluckzhang/ttorrent/tree/ttorrent-2.0-pankti

What I did in this example:

cd path/to/pankti/pankti-generate/output/generated/ttorrent
find . -type f -name "Test*PanktiGen.java" -exec cp --parents {} path/to/ttorrent/pankti-tests/src/test/java \;
cp *.xml path/to/ttorrent/pankti-tests/src/test/resources

This is for the convenience of our experiments. At last we might still put the generated test cases in the original submodules to create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions