Skip to content
Unit testing using Typescript, Mocha, Chai, Mochawesome, Gulp, Visual Studio Code
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Base working project Dec 31, 2017
src Base working project Dec 31, 2017
test Skip selenium tests until getting headless chrome support Jan 21, 2018
.gitignore Removing TestResults Dec 31, 2017
.travis.yml Updated node version and module imports Jan 21, 2018
LICENSE
README.md Updated blog post links from msdn to personal site Apr 4, 2019
azure-pipelines.yml Update azure-pipelines.yml for Azure Pipelines Jan 25, 2019
chromedriver Added browser based testing using selenium Jan 21, 2018
chromedriver.exe Added browser based testing using selenium Jan 21, 2018
gulpfile.js Base working project Dec 31, 2017
package-vsts.json Package.json file used for VSTS integration Jan 28, 2018
package.json
tsconfig.json Base working project Dec 31, 2017

README.md

MochaTypescriptTest-101

Travis CI: Build Status

Unit testing using Typescript and Mocha. Code tested in Node.js v6.11.4.

To run this code:

  1. Go to project root folder
  2. npm install (downloads node dependencies)
  3. code . (opens project in VS Code)
  4. F5 (runs VS code launch task)

Tools, Libraries, Frameworks used:

  1. Coding Typescript.
  2. Testing framework Mocha.
  3. Chai for assertion framework.
  4. Mochawesome for reporting.
  5. Gulp for build tasks.
  6. Visual Studio Code for code editor and launch tasks
  7. Travis for CI build and test
  8. Browser based testing with Selenium

Refer these blog posts for step by step guide:

Setting up node application with TypeScript in VS Code  —  using mocha, chai, mochawesome, gulp, travis

UI Test Automation with Node.js, TypeScript, Mocha and Selenium

AzureDevOps (VSTS) CI to Build and Test Node.js app with Gulp and Mocha

You can’t perform that action at this time.