All Projects → qlik-oss → after-work.js

qlik-oss / after-work.js

Licence: MIT license
[DEPRECATED] CLI for automated tests in web projects.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
Handlebars
879 projects

Projects that are alternatives of or similar to after-work.js

Phantomas
Headless Chromium-based web performance metrics collector and monitoring tool
Stars: ✭ 2,191 (+3812.5%)
Mutual labels:  headless-chrome, puppeteer
tic-tac-toe-game-using-bit
Simple Tic Tac Toe game built with react-typescript components
Stars: ✭ 19 (-66.07%)
Mutual labels:  mocha-tests, mocha-chai
Puppeteer Extra
💯 Teach puppeteer new tricks through plugins.
Stars: ✭ 3,397 (+5966.07%)
Mutual labels:  headless-chrome, puppeteer
Squidwarc
Squidwarc is a high fidelity, user scriptable, archival crawler that uses Chrome or Chromium with or without a head
Stars: ✭ 125 (+123.21%)
Mutual labels:  headless-chrome, puppeteer
puppeteer-lambda
Module for using Headless-Chrome by Puppeteer on AWS Lambda.
Stars: ✭ 117 (+108.93%)
Mutual labels:  headless-chrome, puppeteer
Deno Puppeteer
A port of puppeteer running on Deno
Stars: ✭ 128 (+128.57%)
Mutual labels:  headless-chrome, puppeteer
BotBlock.org
BotBlock - The List of Discord Bot Lists and Services
Stars: ✭ 29 (-48.21%)
Mutual labels:  mocha-tests, mocha-chai
Page2image
📷 page2image is a npm package for taking screenshots which also provides CLI command
Stars: ✭ 66 (+17.86%)
Mutual labels:  headless-chrome, puppeteer
CrawlerSamples
This is a Puppeteer+AngleSharp crawler console app samples, used C# 7.1 coding and dotnet core build.
Stars: ✭ 36 (-35.71%)
Mutual labels:  headless-chrome, puppeteer
Query Selector Shadow Dom
querySelector that can pierce Shadow DOM roots without knowing the path through nested shadow roots. Useful for automated testing of Web Components. Production use is not advised, this is for test environments/tools such as Web Driver, Playwright, Puppeteer
Stars: ✭ 115 (+105.36%)
Mutual labels:  protractor, puppeteer
Awesome Puppeteer
A curated list of awesome puppeteer resources.
Stars: ✭ 1,728 (+2985.71%)
Mutual labels:  headless-chrome, puppeteer
apify-cli
Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.
Stars: ✭ 37 (-33.93%)
Mutual labels:  headless-chrome, puppeteer
Puppeteer Dart
A Dart library to automate the Chrome browser over the DevTools Protocol. This is a port of the Puppeteer API
Stars: ✭ 92 (+64.29%)
Mutual labels:  headless-chrome, puppeteer
Puppeteer Cluster
Puppeteer Pool, run a cluster of instances in parallel
Stars: ✭ 2,175 (+3783.93%)
Mutual labels:  headless-chrome, puppeteer
Puppeteer Functions
Puppeteer Firebase Functions demo
Stars: ✭ 75 (+33.93%)
Mutual labels:  headless-chrome, puppeteer
Puppeteer Examples
Puppeteer example scripts for running Headless Chrome from Node.
Stars: ✭ 2,781 (+4866.07%)
Mutual labels:  headless-chrome, puppeteer
Puphpeteer
A Puppeteer bridge for PHP, supporting the entire API.
Stars: ✭ 1,014 (+1710.71%)
Mutual labels:  headless-chrome, puppeteer
Puppeteer Deep
Puppeteer, Headless Chrome;爬取《es6标准入门》、自动推文到掘金、站点性能分析;高级爬虫、自动化UI测试、性能分析;
Stars: ✭ 1,033 (+1744.64%)
Mutual labels:  headless-chrome, puppeteer
Ionic Boilerplate
✨ An Ionic Starter kit featuring Tests, E2E, Karma, Protractor, Jasmine, Istanbul, Gitlab CI, Automatic IPA and APK, TypeScript 2, TsLint, Codelyzer, Typedoc, Yarn, Rollup, and Webpack 2
Stars: ✭ 309 (+451.79%)
Mutual labels:  protractor, headless-chrome
puppet-master
Puppeteer as a service hosted on Saasify.
Stars: ✭ 25 (-55.36%)
Mutual labels:  headless-chrome, puppeteer

after-work.js

CircleCI Renovate enabled Coverage Status

after-work.js is an unified test framework highly configurable through cli and configuration files allowing tests to be executed in the desired context.

Deprecated

after-work.js is deprecated. Here are some alternatives:

Requirements

Default runner

  • node: Node.js >= 12.x

Context dependent

  • cdp (Chrome Debugging Protocol): Chrome > 61
  • protractor (webdriver protocol): protractor 5.x + browser(s)
  • puppeteer (High-level Headless Chrome Node API - experimental): puppeteer

Introduction

after-work.js aims to be a tool that facilitates the testing while development or restructuring code. Designed for test and provide fast feedback on changed code and added testcases.

To configure after-work.js you need to start with an analyse of the code.

  • What context should it be executed in (Node.js, browser)
  • What type of tests should be executed (unit, component, integration, e2e)
  • Does the code have any dependencies to build or run (babel...)

Get started

Installation

Install the module using npm:

npm install --save-dev @after-work.js/aw

CLI entrypoint

after-work.js is CLI and consists of a command together with appropriate options Help is always available with the --help, -h option

npx aw -h
npx aw chrome -h
npx aw protractor -h
npx aw serve -h
npx aw puppeteer -h
Command Description Alias Default Experimental
node Run tests in node. x
cdp Run tests in Chrome (chrome devtools protocol). chrome
protractor Run tests with Protractor. ptor
serve Serve files.
puppeteer Run tests with Puppeteer. puppet x

All commands support passing a config file for all options.

npx aw -c ./path/to/aw.config.js

However, passing an option from command line will override the config file option.

npx aw -c ./path/to/aw.config.js --glob /path/that/overrides/glob/in/config/file

This enables easy debugging setup from modern editors for example Visual Studio Code

This will only run the current active file. And you don't have to worry about your tests timing out since after-work.js will automatically detect running a debugger and set the appropriate options accordingly.

Included Tools

The following tools are bundled into after-work.js:

  • Mocha: an extensible testing framework for TDD or BDD.
  • Chai: an assertion library used together with a JavaScript testing framework.
  • Sinon: a framework for standalone test spies, stubs and mocks for JavaScript.
  • Nyc: the Istanbul command line interface

Contributing

Please follow the instructions in CONTRIBUTING.md.

Publish to npm

  1. npx lerna version --exact --no-push --no-git-tag-version --force-publish
  2. Update all @after-work.js/* dependencies in the root package.json to match the new version
  3. git commit -m "chore(release): publish vX.Y.Z"
  4. git tag -a vX.Y.Z -m "vX.Y.Z"
  5. npx lerna publish from-git
  6. git push --follow-tags
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].