I suggest you ...

JavaScript Unit Testing

Please provide a TestRunner for javascript Unit Testing Frameworks like QUnit. It should be possible to run them automated in the background. Also different browser javascript engines could be targeted (like IE oder Google V8).

140 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Marius FilipowskiMarius Filipowski shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    6 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • luke.a.pageluke.a.page commented  ·   ·  Flag as inappropriate

        -1 don't re-invent the wheel, point people at one of the many libraries in the node eco-system that does this already. Maybe allow more integration.

      • Brandon WittwerBrandon Wittwer commented  ·   ·  Flag as inappropriate

        A native JS test runner with debugging in both VS and TFS build environments are definitely needed. JS Tests should be first class citizens. The only configuration to consider is how to uniquely identify the test syntax, boundaries, and assertion methods. So OOTB, jasmine, QUnit, Mocha... but then a published standard to tell developers how to configure the test runner to be able to accept ANY framework.

        {framework:'Jasmine',
        testNamespace:'define',
        testDefinition:'it',
        assertion:'expect',
        pathResolution:[
        'referenceComments',
        {pathResolutionModule:'AMD', module:'requireJS'}
        ]
        }

      • Richard HepburnRichard Hepburn commented  ·   ·  Flag as inappropriate

        The test runner should also support TypeScript and should support attaching to the browser process so you can debug into the tests from inside of VS. Currently, it's very difficult to provide a productive development experience that allows developers to debug into their Unit Tests (QUnit, Jasmine, etc...) from within the VS IDE. The only way to do this now, is to create a separate test runner page (e.g. testrunner.html) and set that as your start page and then run VS. Most other test runner tools like Chutzpah and Karma don't allow you to debug the tests from within VS. It's also important to be able to integrate the test results back into VS so all test results are in one place.

      • Anonymous commented  ·   ·  Flag as inappropriate

        I should see not just a test runner, but the the runner should be capable of debug tests too.

      • Hugo BiargeHugo Biarge commented  ·   ·  Flag as inappropriate

        It would be nice to include code converge capabilities and integrarte the test and coverage results with Visual Studio and Team Foundation Server - Visual Studio. Online.

      Feedback and Knowledge Base