CodeceptJS
Resemble.js
Our great sponsors
CodeceptJS | Resemble.js | |
---|---|---|
15 | 1 | |
4,037 | 4,441 | |
0.5% | 0.8% | |
9.6 | 3.9 | |
2 days ago | about 2 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CodeceptJS
-
Automation Framework Design
But honestly, it may be preferable for you to use a single framework that does support both technologies (Web and Mobile) out of the box like webdriver.io or codecept.
-
Comparing Full Page Screenshots, Cross-Device
Extending my screenshot tests, I discovered the useful configuration option to set fullPageScreenshots: true. When I wanted to set different window sizes, I was not the first one struggling to resize the browser window in CodeceptJS programmatically.
There are different tools for visual screenshot testing, like BackstopJS, and Cypress.io also has a screenshot() function. In this series, I focus on writing tests with CodeceptJS.
-
How to Accelerate Selenide Tests with Playwright
CodeceptJS – A wrapper for different tools in one interface. Language: JavaScript/TypeScript. Frameworks that are wrapped: Playwright, Webdriver.io, Puppeteer, Protractor, etc. The service also comes with a large community and is easy to install and use for e2e testing.
-
Testing React Apps in 2022 with Cypress: An In-Depth Guide for Beginners
back when I was doing FE, I found https://codecept.io, which is the same concept as Cypress but with a Playwright driver. Have not used but thought it's worth a mention
-
Automating Tests using CodeceptJS and Testomat.io: First Steps
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.
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.
-
API Testing Tools in JavaScript
I think you should add codeceptjs which does API testing on top of selenium / puppeteer tests.
-
What should almost everyone be using on almost every project?
Protractor is dead. Look into Cypress, WebDriverIO, or CodeceptJS
-
Running CodeceptJS in BrowserStack Automate
Using a service like BrowserStack you can take your local automation tests to the skies. This is made possible by directing CodeceptJS to point to BrowserStack instead of running locally.
Resemble.js
-
Automating Tests using CodeceptJS and Testomat.io: First Steps
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:
What are some alternatives?
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
WebdriverIO - Next-gen browser and mobile automation test framework for Node.js
Cucumber.js - Cucumber for JavaScript
jest - Delightful JavaScript Testing.
axe-core - Accessibility engine for automated Web UI testing
dotenv - Loads environment variables from .env for nodejs projects.
playwright-test-coverage - Extends Playwright test to measure code coverage
nightwatch - Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
istanbul - Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
tape - tap-producing test harness for node and browsers
dotenv - A Ruby gem to load environment variables from `.env`.
power-assert - Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API.