Comments (1)
I just watched your presentation and thought it was good and I'm glad that someone has created a
styleguide for protractor.
Thank you. I'm really happy to hear.
One of the main problems I have is the implication that protractor is only for e2e tests. I also really like > protractor for component (directive) integration tests. Some of these guidelines are very specific to the > first case.
You are right, the guidelines really focus on the first case, because that's where I saw most of the confusion and misunderstandings coming from. With directives opinions are quite divided, and even inside our team, we had a lot of discussions about what kind of tests we want for them. I think it ofc ultimately depends on how complex the directive is, but imo you can get away with testing most of the things in unit tests, as long as, as you pointed out, there's not excessive DOM testing going on.
It is suggested not to mock out anything. Some of my directives communicate with the server (through > a service) and I like to stub this out. I don't want to have to run a server to integration test my directives.
I updated that part this morning in the repo. I understand what you are saying and I think in the end it depends very much on your use case.
I like to use gulp, but I don't set up my configuration this way. I agree with what is said about not
duplicating configuration. However, I like to be able to use protractor directly from the command line.
You can still use protractor from the command line and just pass in some arguments. Not so elegant, but still doable.
Thanks for creating this.
Thank YOU very much for your thoughts and feedback. I really appreciate it ^_^
from protractor-styleguide.
Related Issues (20)
- Add rule about phrasing
- Add section about helpers
- Update examples to latest Protractor version
- Update section about Page Objects
- Remove unnecessary tasks from the Gruntfile and update package.json accordingly
- Sugar Step for E2E Testing and Test Tags for Mocked E2E HOT 1
- Thanks for style guide... HOT 2
- Please advice independent tests HOT 2
- Enforcing style guide rules HOT 3
- Require all for page objects HOT 1
- Rule 14: does double export make sense? HOT 2
- Type Over in code - documentation HOT 2
- This project may need an additional maintainer HOT 10
- Rule-15 missing recommended example HOT 1
- Rule-22: Second bullet should read as an aside/note
- Rule-17 examples inversed? HOT 2
- set global variables in a file - not in conf file HOT 3
- conditional cases HOT 2
- Add info about Protractor (general part)
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 protractor-styleguide.