All Projects β†’ quasarframework β†’ quasar-testing

quasarframework / quasar-testing

Licence: MIT license
Testing Harness App Extensions for the Quasar Framework 1.0+

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to quasar-testing

Cypress
Fast, easy and reliable testing for anything that runs in a browser.
Stars: ✭ 35,145 (+24650%)
Mutual labels:  test-runner, cypress, e2e-testing
Ava
Node.js test runner that lets you develop with confidence πŸš€
Stars: ✭ 19,458 (+13602.82%)
Mutual labels:  unit-testing, test-runner, ava
odoo-cypress
Odoo Framework E2E Testing using Cypress
Stars: ✭ 19 (-86.62%)
Mutual labels:  cypress, e2e-testing
awesome-javascript-testing
πŸ”§ Awesome JavaScript testing resources
Stars: ✭ 28 (-80.28%)
Mutual labels:  unit-testing, ava
Vstest
Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
Stars: ✭ 624 (+339.44%)
Mutual labels:  unit-testing, test-runner
three-musketeers
A simple module to introspect, debug and test any THREE.js application.
Stars: ✭ 30 (-78.87%)
Mutual labels:  unit-testing, e2e-testing
angular-karma test-explorer
vscode extension for easy angular testing and debugging
Stars: ✭ 67 (-52.82%)
Mutual labels:  unit-testing, test-runner
Dredd
Language-agnostic HTTP API Testing Tool
Stars: ✭ 3,770 (+2554.93%)
Mutual labels:  unit-testing, test-runner
Mochify.js
β˜•οΈ TDD with Browserify, Mocha, Headless Chrome and WebDriver
Stars: ✭ 338 (+138.03%)
Mutual labels:  webdriver, test-runner
Spectrum
A BDD-style test runner for Java 8. Inspired by Jasmine, RSpec, and Cucumber.
Stars: ✭ 142 (+0%)
Mutual labels:  unit-testing, test-runner
Zunit
A powerful testing framework for ZSH projects
Stars: ✭ 140 (-1.41%)
Mutual labels:  unit-testing, test-runner
Cypress Example Recipes
Various recipes for testing common scenarios with Cypress
Stars: ✭ 2,485 (+1650%)
Mutual labels:  unit-testing, cypress
oletus
Minimal ECMAScript Module test runner
Stars: ✭ 43 (-69.72%)
Mutual labels:  unit-testing, test-runner
Panther
A browser testing and web crawling library for PHP and Symfony
Stars: ✭ 2,480 (+1646.48%)
Mutual labels:  webdriver, e2e-testing
tropic
🍍 Test Runner Library
Stars: ✭ 29 (-79.58%)
Mutual labels:  unit-testing, test-runner
Seleniumbase
A Python framework that inspires developers to become better test automation engineers. πŸ§ πŸ’‘
Stars: ✭ 2,520 (+1674.65%)
Mutual labels:  webdriver, e2e-testing
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (-71.13%)
Mutual labels:  unit-testing, test-runner
Ava Ts
πŸš€ Fork of the AVA test runner with native typescript support
Stars: ✭ 114 (-19.72%)
Mutual labels:  test-runner, ava
Automation Arsenal
Curated list of popular Java and Kotlin frameworks, libraries and tools related to software testing, quality assurance and adjacent processes automation.
Stars: ✭ 105 (-26.06%)
Mutual labels:  unit-testing, webdriver
Acutest
Simple header-only C/C++ unit testing facility.
Stars: ✭ 170 (+19.72%)
Mutual labels:  unit-testing, test-runner

@quasar/testing

You’re looking at Quasar v2 testing docs. If you're searching for Quasar v1 docs, head here

Check out the migration status here

This is the monorepo for integrating the test-runner of your choice into your Quasar app.

You can install multiple pre-rigged testing harnesses (test runners) to your Quasar application, each one will:

  • install the harness NPM package into your project;
  • scaffold necessary configuration files;
  • add script commands, if you so choose, which expose some functionality of the respective harness.

App Extensions (such as these testing harnesses) only work with Quasar CLI, not with Vue CLI, nor by directly installing packages via a package manager as npm or yarn. Use quasar ext add ... or the installation step won't be executed and configuration files won't be copied over.

Testing is not in and of itself hard. The most complicated part is setting up the testing harness. The trick lies in knowing what to test. If you are new to testing, it is absolutely imperative that you familiarize yourself with some of the concepts and patterns. There are some links for further reading at the end of this document page.

The Test Driven Design approach will help you to write better (and fewer) tests. Even though it may seem like it slows you down to some degree, this habit pays its dividends on the long term drastically reducing the number of public bugs and the project maintenance effort. Think of tests like insurance for your code that always pays out. On the other hand, not everything is worth being tested, or is worth being tested only at an higher level (eg. using an E2E tests instead of unit tests).

REMEMBER
Test the functionality, not the function

Table of contents

Donations

The Quasar team spend a considerabile amount of time studying, coding and maintaining App Extensions (AE) which save literally thousands of developers hours, days or weeks of work.

Does your business or personal projects depend on these App Extensions? How much time did we save you until now? Consider donating to help us maintain them and allow us to create new ones!

Installation

You can add test harnesses:

  • in a centralized way via the Testing Harnesses Manager;
  • using an "a-la-carte" approach, checking each harness documentation.

You can add multiple harnesses and even use them into your continuous integration pipelines.

Removal

You can remove a testing harness running:

$ quasar ext remove @quasar/testing-unit-jest

This will remove the associated NPM package and run the Quasar App Extensions uninstall hook. If not done into the AE uninstall hook, the removal won't delete test or configuration files.

Reset

If you mess up your configuration and need to reset, or just want to check out if there has been any changes into new versions configuration, you should run:

$ quasar ext add @quasar/testing-unit-jest

Be careful though, this will overwrite ALL existing files (including configurations) if you allow it to. Make sure to have some kind of version control in place before proceeding. This operation will also upgrade the NPM package and its dependencies.

To prevent installing new or updated dependencies, you should run:

$ quasar ext invoke @quasar/testing-unit-jest

Upgrade

You can upgrade a testing harness and its dependencies by updating its related NPM package.

$ yarn add -D @quasar/quasar-app-extension-testing-unit-jest

This won't change existing test or configuration files.

Upgrade to a new major version with NPM

When upgrading between major versions, since there are major changes, we suggest you to remove and re-add the AE, to obtain lastest configuration files too. Ensure your source control is clean before proceeding, then answer (y) and "Overwrite all" when prompted to overwrite existing files and individually git diff all changes manually to check out which changes you want to keep and which you want to revert.

$ quasar ext remove @quasar/testing-unit-jest
$ quasar ext add @quasar/testing-unit-jest

Testing Harnesses Manager

Check out Testing Harnesses Manager AE documentation

Unit Testing

Jest

Check out Jest AE documentation

E2E Testing

We recommend testing webapps with Cypress if you target Chrome-based browsers (Chrome, Edge, Electron) or Firefox - but if you want to test Safari or Cordova/Capacitor apps, then you should consider using webdriver.io.

Cypress

Check out Cypress AE documentation

Quality Auditing (OUTDATED, not migrated to Qv2 yet)

$ quasar ext add @quasar/testing-quality

Auditing the quality of your app is something you want to do before you go in production. Depending on your perspective, quality can mean many things. So we have put together a few tools that we think can help you have a qualitatively better project.

The Lighthouse tool can help you identify issues with your PWA app, but only if you serve the built version of your project. If you use it a lot, consider installing it globally.

Snyk is a tool for identifying node modules that have security implications. Running this regularly will keep you alerted to issues that may be stemming from repositories you use.

Node License Finder (nlf) is a free tool you can use to catalog all the licenses of the hundreds of open-source projects you are using in your project.

Roadmap

Test harnesses currently verified to have valid "integration" are checked off in the following list. We won't commit to any deadline for integrations of new harnesses.

UNIT

E2E

QUALITY

UTILS

Further Reading

Books

Tutorials

Documentation

Contributing

Contributions to this repository are highly desirable, see the Contribution Guidelines for more details. Please note: project coordination takes place on the Discord server.

Contributors

Special Thanks

Denjell would like to give a special shout out to all of the people who helped test the testing framework during the transition from 0.17 to 1.0

License

MIT Β©2018 - present - D.C. Thompson & Razvan Stoenescu

All Icons Β© the respective owners

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].