Comments (3)
Process of testing
I propose to use Jasmine instead of Mocha, the reasons are that Mocha needs some extra packages to run (although it adds more flexibility), in long term projects, it will affect the maintainability regarding versions and more single pieces to keep upgraded. Jasmine is the choosen (?
Regarding the methodology it will be something like this (maybe):
yo deloitte
will generate a folder called test with this structure:
- test
- stories
- tests
- reports
The .story file should follow the BDD principles:
modal-test.story
Scenario:
I will see a "start course" modal on the screen after log in
GIVEN I'm logged in <url>
WHEN <element> is loaded
THEN I will see a <modal>
Details:
url|element|modal
http://lala.com|#container|#modal
We will write .story files inside the stories folder, which will be in relation (one-to-one) with a .js test file (inside the tests folder).
We should create a command like "yo deloitte:build tests" (correct me if the yo command syntax is wrong) which will establish the relation between the .story file and .js file like:
modal-test.js example
/*
SCENARIO:
I will see a "start course" modal on the screen after log in
GIVEN I'm logged in <url>
WHEN <element> is loaded
THEN I will see a <modal>
Details:
url|element|modal
http://lala.com|#container|#modal
*/
#### FIXED JASMINE CODE!
describe('GIVEN I'm logged in http://lala.com', function() {
// Future test written
});
describe('WHEN #container is loaded', function() {
// Future test written
});
describe('THEN I will see a #modal', function() {
// Future test written
});
Reports
For the reports folder we can use Istanbul (https://github.com/gotwarlost/istanbul)
So, we should create yo deloitte:build report
and do some magic trick to get the reports ... to be continued
from generator-tamagotchi.
That's perfect. Just start with this!
from generator-tamagotchi.
I'm thinking a little more. Please evaluate as a possible implementation the creation of a new generator only handling testing stuff. 😄
from generator-tamagotchi.
Related Issues (19)
- Dev Mode
- Git integration with TFS: Bad link
- _bower.json fix HOT 1
- Integrate ARIA linter as optional into the generator
- Automatic sprite generator HOT 1
- Automate the release process
- Documentation
- Integrate LESS & Chrome DevTools using sourcemaps
- Beautify
- Integrate David
- Improvements provided by yeoman - Review
- Create a test suite for the generator HOT 7
- Reverse proxy using connect? HOT 1
- Improve bower + requirejs + grunt integration because it sucks HOT 4
- Sub generator required for components creation.
- Compile templates as part of grunt build
- Add support for Source Maps
- Make the generator more smart when it's executed on a directory which already has a structure. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-tamagotchi.