-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.javaandobject-data.xmlneed 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
xstreamas 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:
mkdir pankti-testsand add<module>pankti-tests</module>in the rootpom.xml- create a pom file for submodule
pankti-tests, add all of the original submodules as its dependencies, addxstreamas its dependency as well: https://github.com/gluckzhang/ttorrent/blob/ttorrent-2.0-pankti/pankti-tests/pom.xml - put the pankti-generated test files in
src/test/java, put the object data xml files insrc/test/resources
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/resourcesThis 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.
Deee92
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request