Automating Tests using CodeceptJS and Testomat.io: First Steps

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • CodeceptJS

    Supercharged End 2 End Testing Framework for NodeJS

  • Automated runs can be configured using the API. This looks a lot like the command line for synchronizing our tests, but we have to add a the \@testomatio/reporter plugin to our project first and add it to our local CodeceptJS configuration. See the Testomat.io + CodeceptJS documentation for details, and see my GitHub issue: Testomat plugin reports failure #3403 if you don't get a success message on the command line.

  • Resemble.js

    Image analysis and comparison

  • Yes, we can! Documented as "Visual Testing", the screenshot feature is a possible means of testing. We can use Resemble.js, which is a great tool for image comparison and analysis, after adding the codeceptjs-resemblehelper to our project:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • stylelint

    A mighty CSS linter that helps you avoid errors and enforce conventions.

  • Before starting build and test, let's also make sure that our source code passes static quality control, by adding the popular linting tools (eslint for JavaScript and stylelint for CSS) at the beginning of our test tool chain:

  • http-server

    a simple zero-configuration command-line http server

  • If you don't have a localhost preview server already, you can add one using the http-server package and adding a "serve" target in package.json (see example source code below).

  • ingo-steinke.de

    www.ingo-steinke.com is a portfolio website about web developer Ingo Steinke. The site is built using HTML, CSS, JavaScript, and 11ty (eleventy). English version: www.ingo-steinke.com

  • You can verify, copy and paste the relevant code snippets below. I have left out some of my project's details to focus on the test setup. You can find my original source code on GitHub.

  • ESLint

    Find and fix problems in your JavaScript code.

  • Before starting build and test, let's also make sure that our source code passes static quality control, by adding the popular linting tools (eslint for JavaScript and stylelint for CSS) at the beginning of our test tool chain:

  • Codeception

    Full-stack testing PHP framework

  • There are enough blog posts about Jest or Cypress already, so let me introduce Codecept. It comes in two flavors. There is Codeception for PHP, and there is CodeceptJS for JavaScript which we will be using here.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Biome – fast JavaScript linter and formatter

    1 project | news.ycombinator.com | 8 Apr 2024
  • 5 Developer Communities You Must Join in 2024

    3 projects | dev.to | 6 Apr 2024
  • Biomejs.dev (previously Rome-tools by Meta)

    1 project | news.ycombinator.com | 7 Mar 2024
  • 100+ FREE Resources Every Web Developer Must Try

    22 projects | dev.to | 26 Feb 2024
  • Why is Prettier rock solid?

    13 projects | news.ycombinator.com | 19 Feb 2024