mrichard / generator-marionette

Yeoman marionette generator a la AMD
329 stars 72 forks source link

testSuite.js generation overwrites paths to refactored JS-Files #14

Closed niels-garve closed 11 years ago

niels-garve commented 11 years ago

Example: a collection named Test is generated by yo marionette:collection Test which makes the path spec/collections/Test.js appear within testSuite.js.

Now the collection and its test file are refactored (say Test2.js) and the path is adjusted accordingly (spec/collections/Test2.js).

Then, if any other generation takes place and testSuite.js is overwritten, the old path spec/collections/Test.js will appear again.

Can you help me? Thanks in advance

Niels

mrichard commented 11 years ago

Hi @alnico87,

I am not seeing this behavior. The mocha-amd generator should just scan all files in the specs directory to create the test-suite.js list.

When you ran the second generator after the files were renamed, was the new spec added to the testSuite.js list?

niels-garve commented 11 years ago

Hi @mrichard ,

your description of the way how the mocha-amd generator works helped me recognize that something went wrong during refactoring within PHPStorm. The spec files weren't renamed! Everything works fine now! Thank you very much and sorry for being dumb