adobe / aem-component-generator

AEM Component Generator is a java project that enables developers to generate the base structure of an AEM component using a JSON configuration file specifying component and dialog properties and other configuration options.
Apache License 2.0
113 stars 46 forks source link

Test class generator for the created model class. #34

Closed sujeet-singh closed 4 years ago

sujeet-singh commented 4 years ago

testclass flag in properties can be set to false in case test class is not required. Tests by default will fail untill the implementation is provided for them.

HitmanInWis commented 4 years ago

Very solid contribution @sujeet-singh , good job on the coding! I look forward to the requested updates and getting this merged.

sujeet-singh commented 4 years ago

Thanks for looking into it. Will do the necessary changes.

sujeet-singh commented 4 years ago

@HitmanInWis Did you get chance to look?

HitmanInWis commented 4 years ago

Not yet, but rest assured it's on my list. Hoping to get to it today. We've still been quite busy of late.

HitmanInWis commented 4 years ago

Amazing job, everything tests perfectly.

Tested junit 4 vs 5 implementations. Tested failure on invalid junit config. Tested reuse of existing child model class (which correctly avoids generating test class). Tested that turning off unit testing produces same results as prior to adding this PR.

Merging, thanks for the new feature!!