@dotcom-tool-kit/n-test
v4.1.1
Published
A plugin to run smoke tests as part of your CircleCI workflow using the [n-test](https://github.com/Financial-Times/n-test) package.
Downloads
1,522
Readme
@dotcom-tool-kit/n-test
A plugin to run smoke tests as part of your CircleCI workflow using the n-test package.
Installation
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/n-test
And add it to your repo's .toolkitrc.yml
:
plugins:
- '@dotcom-tool-kit/n-test'
Tasks
NTest
Run n-test smoke tests against your application.
Task options
| Property | Description | Type |
| :------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------- |
| browsers
| Selenium browsers to run the test against | Array<string>
|
| host
| Set the hostname to use for all tests. If running in an environment such as a review or staging app build that has Tool Kit state with a URL for an app to run against, that will override this option. | string
|
| config
| Path to config file used to test | string
|
| interactive
| Interactively choose which tests to run | boolean
|
| header
| Request headers to be sent with every request | Record<string, string>
|
All properties are optional.