Ohhh JavaScript...
-
Protractor seems indeed quite nice - I'll put that on my list for future considerations with any Selenium-based tests. Thanks! And yes, I do agree - JS suffers a lot from the rushed implementation which left no time for in-detail design discussions. Generally (not only talking about initial design choices, but taking all factors into account), I consider it the "best and worst language" available. It's a paradox.
Florian Rappl wrote:
I consider it the "best and worst language" available. It's a paradox.
I completely agree with you there! And I must confess, the ecosystem, while annoying, makes it even better! :laugh: It's also the language I love to hate the most :D
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Has anyone ever tried to test JavaScript? Which testing framework to use... Jasmine, Intern, Mocha, QUnit, Cucumber... Wait, some can be customized with assert libraries such as should.js, expect.js or chai. Do they come with spy and mock libraries or do I need to setup Sinon.js, testdouble or JSMockito? And my test frameworks come with other plugins, such as reporters, as well. So anyway, I've made my choice and set things up, now for the test runner... Karma, Wallaby, Ava, Chutzpah. Now I also want Selenium, but that does not work in my test framework out of the box? I can use Nightwatch with Selenium and Karma with Nightwatch, or WebDriverIO with any test framework I like through some additional plugins, or a tool such as Chimp, Spectron or CodeceptJS that wrap WebDriverIO? But now I need even more plugins for both my test framework and my runner? And I need even more frameworks to actually automate my tests? Grunt or Gulp, alright... So let me get this straight, I need at least an automation tool, four or five frameworks, a couple of additional libraries and a shitload of plugins just so I can write and automate some tests? :wtf: Choice is good, but this is insane! X|
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
Good luck. From my experience (mainly with Selenium) everything is browser and browser version dependent and basically all of it sucks on way or another.
Sander Rossel wrote:
Choice is good, but this is insane!
FTFY. Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
Kornfeld Eliyahu Peter wrote:
Let see you tell these to Airport Authority, Police or Army
Would they use Javascript running in a browser? For god's sake, don't answer that. :~
Wrong is evil and must be defeated. - Jeff Ello
Jörgen Andersson wrote:
For god's sake, don't answer that
You are correct, there are some things you just don't want to know.
Never underestimate the power of human stupidity RAH
-
What you describe is rather a community problem than a language problem. Also unless you want to use a task runner you could also just add it your test automation script to your package.json scripts section - problem solved. I'm not opposed to what you wrote (I also think that the JS community is developing new tools for solved problems too often instead of making the existing solutions better), but some parts of it sound a little bit unjustified / unfair to me.
This is CP, making rational and intelligent thoughts and comments about anything we don't like initially is not how it works. :rolleyes:
Jeremy Falcon
-
Has anyone ever tried to test JavaScript? Which testing framework to use... Jasmine, Intern, Mocha, QUnit, Cucumber... Wait, some can be customized with assert libraries such as should.js, expect.js or chai. Do they come with spy and mock libraries or do I need to setup Sinon.js, testdouble or JSMockito? And my test frameworks come with other plugins, such as reporters, as well. So anyway, I've made my choice and set things up, now for the test runner... Karma, Wallaby, Ava, Chutzpah. Now I also want Selenium, but that does not work in my test framework out of the box? I can use Nightwatch with Selenium and Karma with Nightwatch, or WebDriverIO with any test framework I like through some additional plugins, or a tool such as Chimp, Spectron or CodeceptJS that wrap WebDriverIO? But now I need even more plugins for both my test framework and my runner? And I need even more frameworks to actually automate my tests? Grunt or Gulp, alright... So let me get this straight, I need at least an automation tool, four or five frameworks, a couple of additional libraries and a shitload of plugins just so I can write and automate some tests? :wtf: Choice is good, but this is insane! X|
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
I'd suggest getting a good book on the subject and follow the path it teaches. It's so popular now that if you sneeze, there's 20 frameworks for that. Impossible to learn that way.
Jeremy Falcon
-
Florian Rappl wrote:
I consider it the "best and worst language" available. It's a paradox.
I completely agree with you there! And I must confess, the ecosystem, while annoying, makes it even better! :laugh: It's also the language I love to hate the most :D
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
Your hate will dissipate for silly stuff like this when you start getting laid. ;P
Jeremy Falcon
-
I'd suggest getting a good book on the subject and follow the path it teaches. It's so popular now that if you sneeze, there's 20 frameworks for that. Impossible to learn that way.
Jeremy Falcon
But I'm writing that book (seriously)! :laugh: Learning from books has never been my thing. I need to get my hands dirty and try out some stuff. That's also how I like to learn new stuff, by searching and playing around (and sometimes trial and error). That's the reason why I've always hated school and why I'll never go back to school again, it sucks the pleasure right out of anything! In fact, I stopped programming in my spare time when I took up on an IT study at the Open University! It took about two or three years until I finally realized school was holding me back. When I quit I got that drive back that I had before I picked up that study. I'm glad I didn't do an IT study after high school (I did journalism). If I did IT at school I might never have worked in IT now (like I'm also not working in journalism) :)
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Your hate will dissipate for silly stuff like this when you start getting laid. ;P
Jeremy Falcon
I was really close recently! Met this chick at the club, brought her to my place. While we were getting ready she told me to talk dirty to her. I told her:
var o = {
firstName: null,
lastName: null
};
o.prototype.getName = function () {
return this.firstName + ' ' + this.lastName;
}She left... :( Looking back at it I realized my mistake. Never talk JavaScript on first dates! ;p
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
Good luck. From my experience (mainly with Selenium) everything is browser and browser version dependent and basically all of it sucks on way or another.
Sander Rossel wrote:
Choice is good, but this is insane!
FTFY. Marc
V.A.P.O.R.ware - Visual Assisted Programming / Organizational Representation Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
Marc Clifton wrote:
everything is browser and browser version dependent and basically all of it sucks on way or another
Yeah, I'm not a big fan of web development either! :sigh:
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
-
But I'm writing that book (seriously)! :laugh: Learning from books has never been my thing. I need to get my hands dirty and try out some stuff. That's also how I like to learn new stuff, by searching and playing around (and sometimes trial and error). That's the reason why I've always hated school and why I'll never go back to school again, it sucks the pleasure right out of anything! In fact, I stopped programming in my spare time when I took up on an IT study at the Open University! It took about two or three years until I finally realized school was holding me back. When I quit I got that drive back that I had before I picked up that study. I'm glad I didn't do an IT study after high school (I did journalism). If I did IT at school I might never have worked in IT now (like I'm also not working in journalism) :)
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
I feel ya, I suppose the same thing would apply though, just pick an area to start with and stay with it. And while I can be very pro-book to give someone a head start, learning by trial and error is smart so kudos. Sometimes, you just can't beat experience.
Jeremy Falcon
-
I was really close recently! Met this chick at the club, brought her to my place. While we were getting ready she told me to talk dirty to her. I told her:
var o = {
firstName: null,
lastName: null
};
o.prototype.getName = function () {
return this.firstName + ' ' + this.lastName;
}She left... :( Looking back at it I realized my mistake. Never talk JavaScript on first dates! ;p
Best, Sander arrgh.js - Bringing LINQ to JavaScript SQL Server for C# Developers Succinctly Object-Oriented Programming in C# Succinctly
:-D Imagine that.
Jeremy Falcon