Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Ohhh JavaScript...

Ohhh JavaScript...

Scheduled Pinned Locked Moved The Lounge
csharpjavascripttestingdatabasesql-server
24 Posts 10 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sander RosselS Sander Rossel

    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

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #15

    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

    Sander RosselS 1 Reply Last reply
    0
    • J Jorgen Andersson

      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

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #16

      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

      1 Reply Last reply
      0
      • F Florian Rappl

        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.

        J Offline
        J Offline
        Jeremy Falcon
        wrote on last edited by
        #17

        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

        1 Reply Last reply
        0
        • Sander RosselS Sander Rossel

          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

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #18

          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

          Sander RosselS 1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            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

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #19

            Your hate will dissipate for silly stuff like this when you start getting laid. ;P

            Jeremy Falcon

            Sander RosselS 1 Reply Last reply
            0
            • J 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

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #20

              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

              J 1 Reply Last reply
              0
              • J Jeremy Falcon

                Your hate will dissipate for silly stuff like this when you start getting laid. ;P

                Jeremy Falcon

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #21

                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

                J 1 Reply Last reply
                0
                • M Marc Clifton

                  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

                  Sander RosselS Offline
                  Sander RosselS Offline
                  Sander Rossel
                  wrote on last edited by
                  #22

                  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

                  1 Reply Last reply
                  0
                  • Sander RosselS Sander Rossel

                    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

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #23

                    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

                    1 Reply Last reply
                    0
                    • Sander RosselS Sander Rossel

                      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

                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #24

                      :-D Imagine that.

                      Jeremy Falcon

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups