Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New template tools to make better tests and replace test/deps system #330

Merged
merged 4 commits into from
Feb 17, 2015

Conversation

Swiip
Copy link
Owner

@Swiip Swiip commented Feb 6, 2015

There is 2 major evolutions.

First is template tools which ables to list, compile and store templates in a js form. It ables to test them isolated and having coverage on it. One of the result will be a drastic drop of coverage figures! There is a pretest command for compiling all templates because istanbul can't instrument files not present before the launch of the test.

The second point is the test dependencies. I moved all dependencies declaration in the package.js and bower.json. I removed all variables, most of them was in prompts.json. With this I can use my template tools to remove all ifs from the template and get simply enough dependencies files with all dependencies. This makes one and only place for all version management.

@Swiip Swiip force-pushed the test-templates branch 3 times, most recently from 7f0b664 to eeacdf2 Compare February 12, 2015 10:34
lines: 0
branches: 0
functions: 0
excludes: []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you drop a link for documentation ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a hard time to find this back: https://github.com/gotwarlost/istanbul#configuring

Searching for this, I found examples of project which have only set the properties which are not defaults, it could be simpler...

@zckrs
Copy link
Collaborator

zckrs commented Feb 16, 2015

A perfect example of "How to test a advanced Yeoman generator ?"

Very nice jobs. All contributor should read these test suites.

When you rebase with master we merge :-) ?

@Swiip
Copy link
Owner Author

Swiip commented Feb 16, 2015

Thanks, waiting for #279 to do the rebase only once

Conflicts:
	app/templates/gulp/_build.js
	app/templates/gulp/_styles.js
	app/templates/gulp/_unit-tests.js
	test/deps/package.json
	test/test-files-generate.mocha.js
zckrs pushed a commit that referenced this pull request Feb 17, 2015
New template tools to make better tests and replace test/deps system
@zckrs zckrs merged commit 4727b8c into master Feb 17, 2015
@Swiip Swiip deleted the test-templates branch September 9, 2015 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants