Closed BLamy closed 9 years ago
This needs a good chunk of unit tests, preferably before we review the rest of the code.
Also, to encourage best practices, I feel like the option should be enabled by default. And don't just check for a flag but define an actual option, please.
Just to say this PR is a good idea!. And :+1: for the option instead of a flag.
If the user has WCT installed (As checked by the presence of test/index.html
). The generator will ask them what type of test they would like to generate.
$ yo polymer:el x-tag
? Would you like to include an import in your elements.html file? No
? What type of test would you like to create? (Use arrow keys)
> TDD (default)
BDD
None
TDD will copy over a scaffold using suite, setup and test. BDD will copy over a scaffold using describe, before, it.
It will also modify your test/index.html
to include the test in WCT.loadSuites
.
Pull 214
@robdodson You can close this now.
Added a flag for creating the associated WCT test when you are generating an element.