@openforge/dozn-plugin
v0.1.0
Published
Dozn is a tool for automatically generating E2E tests for your application
Downloads
2
Readme
Dozn Plugin
For full information and instructions, please refer to https://dozn.io. However, since you are already here we'll give you a quick glance at what this plugin (and dozn) does!
At a Glance
Dozn is a tool for automatically generating E2E Tests and visualizing your application. Ever spend hours setiting up css selectors, only to have features change and E2E Tests become obsolete in your project?
You're not the only one!
Dozn aims to change the way we utilize and think about E2E Testing. Since (currently) many developers can't find the time to maintain their E2E Test Suite, we decided to change the way we think about E2E Tests.
What this plugin captures
We do NOT capture your source code (check for yourself! #loveopensource). However, we do capture what's already public to end-users... the DOM! The only exception to this is that we have you bootstrap your app so we can capture your Angular Controller names (i.e., "PageCtrl") as a string, as well as the version of your app.
This allows us to present your tests to you in a way you'll understand, instead of random guesses at what a page is called. If you have a "LoginCtrl", then the buttons on the login page will be listed under "LoginCtrl" page.
Using this component
Script tag
- Put
<script src='https://unpkg.com/@openforge/dozn-plugin/dist/dozn.js'></script>
in the head of your index.html - Then you can use the element like this:
<dozn-plugin></dozn-plugin>
Node Modules
- Run
npm install @openforge/dozn-plugin --save
- Put a script tag similar to this
<script src='node_modules/@openforge/dozn-plugin/dist/dozn.js></script>
in the head of your index.html - Then you can use the element like this:
<dozn-plugin></dozn-plugin>
In a stencil-starter app
- Run
npm install @openforge/dozn-plugin --save
- Add an import to the npm packages:
import @openforge/dozn-plugin;
- Then you can use the element like this:
<dozn-plugin></dozn-plugin>
In a angular app
- Run
npm install @openforge/dozn-plugin --save
- Add
CUSTOM_ELEMENTS_SCHEMA
to yourAppModule
- Add the import of defineCustomElements
import { defineCustomElements } from '@openforge/dozn-plugin';
and add the defineCustomElements calldefineCustomElements(window);
to yourmain.ts
. Further info here - Then you can use the element like this:
<dozn-plugin></dozn-plugin>
Parameters
key
The Dozn Plugin needs the kep for the project, in order to get your key, sign up for an account at https://dozn.io
<dozn-plugin key="MY_KEY"></dozn-plugin>
version
This will be the version from the project that you are testing to filter by later on dozn.
<dozn-plugin version="0.0.1"></dozn-plugin>