locked
Unit test for HTML5/JavaScript app

    Question

  • I wanted to do unit testing for an app developed using HTML5/Javascript.

    I found Hilo has done some unit testing using mocha.js and chai.js (http://msdn.microsoft.com/en-gb/library/windows/apps/jj851095.aspx)

    However when I run this project after copying latest mocha and chai, it did not show any output.

    Question:

    Is there any step by step tutorial on how can I do unit testing for HTML5/Javascript App?

    I would appreciate for any useful information on this topic.



    Output

    Tuesday, June 03, 2014 4:31 PM

Answers

  • I have found step by step tutorial on pluralsight that uses chutzpah and jasmine testing framework.

    http://pluralsight.com/training/Courses/TableOfContents/testable-windows-8

    Thanks for the answer, I will ask in the Visual Studio Unit Testing forum if I need further help.


    • Marked as answer by huga5 Sunday, June 08, 2014 8:06 PM
    • Edited by huga5 Sunday, June 08, 2014 8:09 PM adding more information
    Sunday, June 08, 2014 8:05 PM

All replies

  • Per Verifying Code by Using Unit Tests it doesn't look like the Visual Studio Unit Test frameworks support HTML/JS apps, but you can try asking in the Visual Studio Unit Testing forum.

    Other community members may be able to comment on 3rd party unit test frameworks.

    --Rob

    Tuesday, June 03, 2014 5:53 PM
    Owner
  • I have found step by step tutorial on pluralsight that uses chutzpah and jasmine testing framework.

    http://pluralsight.com/training/Courses/TableOfContents/testable-windows-8

    Thanks for the answer, I will ask in the Visual Studio Unit Testing forum if I need further help.


    • Marked as answer by huga5 Sunday, June 08, 2014 8:06 PM
    • Edited by huga5 Sunday, June 08, 2014 8:09 PM adding more information
    Sunday, June 08, 2014 8:05 PM