testcollab-cypress-plugin v1.0.3
Test Collab Cypress reporter
This package publishes your JSON test result file to TestCollab 2
Getting started
NODE_ENV environment variable must have any one value - "development" , "staging", "production"
Install using: npm install -g testcollab-cypress-plugin
this will make "uploadTCRunResult" command available for execution
Run following command:
uploadTCRunResult --apiToken=<YOUR API TOKEN> --projectId=<PROJECT ID> --companyId=<COMPANY ID> --testPlanId=<TEST PLAN ID> --mochaJsonResult=<PATH TO mochawesome json FILE>
Notes: Your JSON file must follow mochawesome format.
In order for this package to map executed test cases with their corresponding Test Collab test cases ID, IDs should be appended to 'title' property of your 'tests' array in JSON as follows:
{
"stats": {
"suites": 1,
"tests": 6,
"passes": 2,
...
},
"results": [
{
"uuid": "..",
...
"suites": [
{
"uuid": "..",
"title": "Test suite",
...
"tests": [
{
"title": "id-1", <-- We parse ID from this
"fullTitle": "Sample test",
Download above sample file here
If you are using multiple configurations in your test run, then test plan configuration ID should be specified in similar way in 'suites' array under title property like this:
{
"stats": {
"suites": 1,
"tests": 6,
"passes": 2,
...
},
"results": [
{
"uuid": "..",
...
"suites": [
{
"uuid": "..",
"title": "TestSuite-1", <-- Test plan configuration ID
...
"tests": [
{
"title": "id-1", <-- Test Case ID
"fullTitle": "Sample test",
Download above sample file here
Support
Test Collab website: testcollab.com