Le 11 mars 2017 11:55:17 GMT+01:00, Niclas Hedhman <[email protected]> a écrit : >Oh, the above will stop for prompts. That can be turned off as well >with >"--noPrompt" > >On Sat, Mar 11, 2017 at 6:53 PM, Niclas Hedhman <[email protected]> >wrote: > >> >> I don''t know how to run Yeoman other than; >> >> First install locally; >> cd tools/generator-polygene >> sudo npm link >> cd $HOME/temp/ >> mkdir niclas >> cd niclas >> >> After that I do >> rm -rf * && cp ../model.json import-model.json && yo polygene >> --import=import-model.json --export && ./gradlew clean build assemble >> >> on each run, as I have a model.json prepared in temp/ >> >> Hope that helps. >> >> On Sat, Mar 11, 2017 at 6:44 PM, Paul Merlin <[email protected]> >> wrote: >> >>> Niclas, >>> >>> I just pushed a first yeoman test that uses the generator to >generate an >>> application and run ./gradlew build in it. >>> >>> It currently fails with a compilation error. >>> >>> To run it: >>> cd tools/generator >>> npm install >>> npm test >>> >>> I'll look into doing this for all permutations later, in the >meantime, >>> feel free to play with the test, change it according to your needs >etc.. >>> >>> Cheers >>> >>> /Paul >>> >>> >>> Paul Merlin a écrit : >>> > Hi Niclas, >>> > >>> > That sounds great, I'll have a look later to see how to automate >the >>> > tests, we really don't want to tests all the permutations by hand. >>> > >>> > Cheers >>> > >>> > >>> > Niclas Hedhman a écrit : >>> >> Hi, >>> >> Last night I made a big improvement on the generator-polygene, >making >>> a lot >>> >> easier to work with the codebase (modular, >creation-by-convention,...). >>> >> Still room for improvement in that area, but it is now miles >better. >>> >> >>> >> I am toying with the idea of generating ALL possible projects in >the >>> >> integration tests, to ensure that no conflict exists, or that >>> something is >>> >> missed in some combination. But my Groovy-Fu is just not "there", >and I >>> >> don't want to look "silly" by having a Java program with Groovy >syntax. >>> >> >>> >> In essence, generate 2688 JSON documents with all possible >>> combinations, >>> >> and pass them one by one to a command line. >>> >> >>> >> Why so many? >>> >> >>> >> 1 of 14 entitiy stores >>> >> x >>> >> 1 of 4 indexing >>> >> x >>> >> 1 of 2 serialization >>> >> x >>> >> 1 of 3 caching >>> >> x >>> >> 1 of 2 metrics >>> >> x >>> >> each of 2 features (4 combos) >>> >> >>> >> And with each other feature I add, the number doubles, so perhaps >not >>> >> doable in the long run, as I intend to include the following >features >>> >> eventually; >>> >> >>> >> 'rest api' >>> >> ,'security' >>> >> // ,'version migration' >>> >> // ,'logging' >>> >> // ,'jmx' >>> >> // ,'circuit breakers' >>> >> // ,'file transactions' >>> >> // ,'spring integration' >>> >> // ,'servlet deployment' >>> >> // ,'osgi support' >>> >> // ,'alarms' >>> >> // ,'scheduling' >>> >> // ,'groovy mixins' >>> >> // ,'javascript mixins' >>> >> >>> >> >>> >> Other things that I am working on are; >>> >> * Support for adding Domain Layer modules with entities, >values, >>> >> objects.... >>> >> * Support for different application types; Rest, command line, >WAR, >>> >> Docker(?) >>> >> * Post creation-time, creation of new modules with entities, >values, >>> >> objects.... >>> >> * and hopefully, post creation-time addition of features. >>> >> >>> >> The last two are of course very tricky, since humans may have >been >>> >> tinkering with files, so perhaps that is a pipe-dream. >>> >> >>> >> Anyway, if anyone could help out with the tests, then this could >be >>> wrapped >>> >> up pretty quickly. Meanwhile, I will continue on the other >features. >>> >> >>> >> >>> >> Cheers >>> >> >> >> >> -- >> Niclas Hedhman, Software Developer >> http://polygene.apache.org <http://zest.apache.org> - New Energy for >Java >> > > > >-- >Niclas Hedhman, Software Developer >http://polygene.apache.org <http://zest.apache.org> - New Energy for >Java
Yeah but... do the commands I wrote to run the test work for you ?? -- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
