project-testing-frameworks

Comparing Mocha, Jest and Jasmine via Express App

https://github.com/sebastiantoporsch/project-testing-frameworks

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Comparing Mocha, Jest and Jasmine via Express App

Basic Info
  • Host: GitHub
  • Owner: SebastianToporsch
  • Language: JavaScript
  • Default Branch: main
  • Size: 1.43 MB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 3 years ago
Metadata Files
Readme Citation

README.md

Project Testing Frameworks

Comparing Mocha, Jest and Jasmine via Express App

Prerequisites

Setup

1. Install dependencies

Run the following command in the terminal/cmd:

npm install

2. Setting up the database

To run the REST-API you need a running MySQL installation.

At first copy the .env.exmaple file and rename the copy to ".env". Then enter the name for the database etc. that you want to use for the project. Don't forget to enter the password for your MySQL if you use one.

If you are satisfied with the parameters/information you have entered then run the following command in your terminal/cmd:

npm run create-db

Run/Execute

Run the command in terminal/cmd:

npm run start

General Information about the Project

This project serves the purpose of comparing the three JavaScript Frameworks: Mocha, Jest and Jamsine. Using TypeScript and Node with express I intend to compare the Frameworks in several aspects. The aspects in question are: Setup, Runtime, Limitaions and Features.

Framework Comparison

Setup

Runtime

Limitations and Features

Sources

TypeScript

  • Setup TypeScript:
    • https://www.digitalocean.com/community/tutorials/typescript-new-project

Node:

  • Setup and examples:
    • https://www.pluralsight.com/guides/getting-started-with-nodejs

PUG:

  • Setup: https://pugjs.org/api/getting-started.html
  • Usage:

    • Integrate into express app: https://pugjs.org/api/express.html
    • Syntax and API example: https://github.com/pugjs/pug

Mocha

  • Setup and Usage:
    • https://mochajs.org/ (sroll down)

Jest

  • Setup:
    • https://jestjs.io/docs/getting-started

Jasmine

  • Setup with node:
    • https://jasmine.github.io/pages/getting_started.html

Dotenv

  • Setup and use with import:
    • https://www.npmjs.com/package/dotenv

MYSQL

  • Use MYSQL with Node Typescript to implement REST:
    • https://livecodestream.dev/post/your-guide-to-building-a-nodejs-typescript-rest-api-with-mysql/

Owner

  • Login: SebastianToporsch
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Toporsch"
  given-names: "Sebastian"
title: "Project-Testing-Frameworks"
version: 1.0.0
date-released: 2022-04-19
url: "https://github.com/SebastianToporsch/Project-Testing-Frameworks"

GitHub Events

Total
Last Year

Dependencies

package-lock.json npm
  • 961 dependencies
package.json npm
  • @babel/plugin-transform-modules-commonjs ^7.18.2 development
  • @babel/preset-env ^7.18.2 development
  • @tsconfig/node14 ^1.0.1 development
  • @types/body-parser ^1.19.2 development
  • @types/dotenv ^8.2.0 development
  • @types/express ^4.17.13 development
  • @types/mysql ^2.15.19 development
  • @types/node ^14.18.1 development
  • babel-jest ^27.5.1 development
  • eslint ^8.19.0 development
  • eslint-config-standard ^17.0.0 development
  • eslint-plugin-import ^2.26.0 development
  • eslint-plugin-n ^15.2.4 development
  • eslint-plugin-promise ^6.0.0 development
  • flush-cache ^1.0.1 development
  • jasmine ^3.10.0 development
  • jest ^27.3.1 development
  • mocha ^9.1.3 development
  • bcrypt ^5.0.1
  • body-parser ^1.19.0
  • chai ^4.3.4
  • cors ^2.8.5
  • dotenv ^10.0.0
  • express ^4.17.1
  • jasmine-snapshot ^1.8.1
  • mocha-chai-jest-snapshot ^1.1.4
  • mysql2 ^2.3.3
  • nodemon ^2.0.14
  • npm ^8.10.0
  • pug ^3.0.2
  • sinon ^14.0.0
  • superagent ^7.0.2
  • supertest ^6.2.3