How to Get Started with NUnit (CSharp, Dev Containers) In this tutorial, I'm going to show you how to get started with NUnit. To make setup easier, I'm going to use a Dev Container.
How to Test Async Requests with MochaJS In this article I show you how to test asynchronous requests with MochaJS. To simplify the example I’m going to show you how to build a mock Web server. That way you can simulate the delay from a server, without actually having to run a server. Step 1. Clone
How to use Assert in MochaJS In this article I show how to use assert to test if something is true or false in MochaJS. Step 1. Initialize a new test project Create a test project folder and initialize it with npm. If you need more details on these steps, see my article on MochaJS setup.
Lerna Monorepo Mocha Setup (TypeScript) In this article I show you how to setup a lerna TypeScript monorepo for testing with mocha (MochaJS). Step 1. Install lerna globally Install lerna globally using npm. If you don’t have npm installed, click here. * Open up a terminal window * Run the following (the $ indicates that you are
Lerna Monorepo Mocha Setup (JavaScript) In this article, I show you how to set up a lerna JavaScript monorepo for testing with mocha (MochaJS). These instructions were written and tested on a Mac. Step 1. Install lerna and mocha globally Install lerna and mocha globally using npm. If you don’t have npm installed, click
How to Test Exception Messages with MochaJS In this article I show you how to test exception messages with MochaJS. Step 1. Clone the starter project Use git to clone my starter repo into a new folder. git clone https://github.com/mitchallen/autom8able-mochajs-starter.git mocha-awesome cd mocha-awesome/ npm install Run the default tests to make sure
How to Generate Awesome Mocha Reports with Mocha Awesome In this article I show you how to generate HTML and JSON test result reports for MochaJS using Mocha Awesome. Step 1. Clone the starter project Use git to clone my starter repo into a new folder. git clone https://github.com/mitchallen/autom8able-mochajs-starter.git mocha-awesome cd mocha-awesome/ npm install