-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create a test suite for the generator #3
Comments
Test suite quick start (?Added a new branch called tests-unit for developing a test suite for this brand new generator. Inside the cloned folder should run:
It will create a new test folder and inside of it the structure:
Now should be able to write some tests using Mocha: http://visionmedia.github.io/mocha e.g:
Assertions
Usage: http://chaijs.com/plugins/sinon-chai Let me know what you think. |
Cool! Now, we will need to try something extra:
|
Regarding Jasmine/qUnit, I think it's sounds like a lot. Chai extended with sinon features should be enough for asserts, isn't it? On the other hand, Testacular seems great to add some real cross browser testing.
Resume.
If it's ok with you, I will update the tests-suite's branch home page with the docs. |
Because the evaluation we did in #2 we have some facts:
Maybe the generator's test suite could be a good example for a future generalization of the testing process. What do you think? |
Final test suite's architectureAfter evaluating for a while, we want to create a brand new generator (new repository maybe). It will handle the creation of tests. We think it's better because we will have everything in just one piece that could be use to test any generator and every project. Just install inside your project and use it! Usage
' yo dt-pcg
Commands
Black magic, rabbits and witchesWe could provide an API for everybody who wants to write his own method for testing theirs generators. Every time you run yo dt-pcg you will be running that brand new method if needed. Resume/Extras
|
Just go ahead and let see what you can get 😄 |
Vamos a tener una carpeta live, donde van a estar los .story del SMOKE TEST y la carpeta automation donde van a estar los .js. Todo esto lo automatizamos con grunt y la idea es generar los .js (tests) con un comando de grunt. Aca va una exlicacion, que les parece? Scenario: We need to see a text that confirms that the user was valid Given a <page_url> Examples De aca sacamos que podemos usar
exports.tests = [{
]; |
No description provided.
The text was updated successfully, but these errors were encountered: