Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nilaydshah/mochatypescripttest-101
- Owner: nilaydshah
- License: mit
- Created: 2017-11-24T14:43:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T09:42:49.000Z (over 5 years ago)
- Last Synced: 2024-11-07T09:03:45.929Z (1 day ago)
- Topics: 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
- Language: TypeScript
- Homepage:
- Size: 6.73 MB
- Stars: 17
- Watchers: 3
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)