Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nilaydshah/mochatypescripttest-101

Unit testing using Typescript, Mocha, Chai, Mochawesome, Gulp, Visual Studio Code
https://github.com/nilaydshah/mochatypescripttest-101

chai gulp gulp-task mocha mochawesome node nodejs selenium test-automation testing travis travis-ci typescript typescript-testing ui-testing visual-studio visual-studio-code vscode vsts

Last synced: 1 day ago
JSON representation

Unit testing using Typescript, Mocha, Chai, Mochawesome, Gulp, Visual Studio Code

Awesome Lists containing this project

README

        

# MochaTypescriptTest-101
Travis CI: [![Build Status](https://travis-ci.org/nilaydshah/MochaTypescriptTest-101.svg?branch=master)](https://travis-ci.org/nilaydshah/MochaTypescriptTest-101)

### 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](https://www.nilayshah.in/2019/03/30/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](https://www.nilayshah.in/2019/03/31/ui-test-automation-with-node-js-typescript-mocha-and-selenium/)

> [AzureDevOps (VSTS) CI to Build and Test Node.js app with Gulp and Mocha](https://www.nilayshah.in/2019/03/31/azure-devops-ci-to-build-and-test-node-js-app-with-gulp-and-mocha/)