Testplane is a modern and robust end-to-end testing framework. It features support for every browser with a single API, testing on real devices, great extensibility and vast visual testing capabilities.
This repository is a home for Testplane docs website.
nvm use
npm ci
npm run clone-testplane
Env variables:
USE_LOCAL
-true
means copy local testplane repo,false
- clone remote, default:false
LOCAL_REPO_DIR
- path to local repo (used whenUSE_LOCAL
istrue
)REPO_PATH
- remote repo url (used whenUSE_LOCAL
isfalse
)
This command clones testplane to .testplane
npm run docs:generate:template
It will generate a Russian localization template at ./exports
that can be edited. There is a problem that it does not seem to accept config args, it looks like it is not gonna work with docusaurus plugin. Now the only way seems to be this:
npm run docs:generate:ru
English Docs are autogenerated using docusaurus-plugin-typedoc
.
API specification docs are generated using TypeDoc with 3 plugins:
typedoc-plugin-rename-defaults
renames default exports back to their original namestypedoc-plugin-localization
adds Russian localizationtypedoc-plugin-markdown
enables markdown generation
Notes:
- The docs are generated for all types, classes and interfaces exported from
testplane/src/index.ts
- To remove type/class/interface from docs, write @internal in the description like this:
/** * @internal */ export type SomeInternalType = { id: number }
npm start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
This repository uses TypeScript, Eslint and Prettier.
To run all tests available, run:
npm test
To check types, run:
npm run typecheck
To fix code issues and formatting, run:
npm run reformat