Skip to content

qase-tms/qase-codeception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Qase TMS Codeception reporter

Publish results simple and easy.

How to integrate

For Codeception 5:

composer require qase/codeception-reporter:^2

For Codeception 4:

composer require qase/codeception-reporter:^1

Example of usage

The Codeception reporter has the ability to auto-generate test cases and suites from your test data.

But if necessary, you can independently register the ID of already existing test cases from TMS before the executing tests. For example:

/**
 * @qaseId 3
 */
public function testCanBeUsedAsString(): void
{
    $this->assertEquals(
        '[email protected]',
        Email::fromString('[email protected]')
    );
}

To run tests and create a test run, execute the command:

$ ./vendor/bin/codecept run

A test run will be performed and available at:

https://app.qase.io/run/QASE_PROJECT_CODE

If test fails, a defect will be automatically created

Configuration

Add to your codeception.yml extension:

extensions:
        enabled: [Qase\Codeception\Reporter]

Reporter options (* - required):

  • QASE_REPORT - toggles sending reports to Qase.io, set 1 to enable
  • *QASE_API_TOKEN - access token, you can find more information here.
  • *QASE_PROJECT_CODE - code of your project (can be extracted from main page of your project, as example, for https://app.qase.io/project/DEMO -> DEMO is project code here.
  • *QASE_API_BASE_URL - URL endpoint API from Qase TMS, default is https://api.qase.io/v1.
  • QASE_RUN_ID - allows you to use an existing test run instead of creating new.
  • QASE_RUN_NAME - Set custom Run name, when new run is created.
  • QASE_RUN_DESCRIPTION - Set custom Run description, when new run is created.
  • QASE_RUN_COMPLETE - performs the "complete" function after passing the test run.
  • QASE_ENVIRONMENT_ID - environment ID from Qase TMS
  • QASE_LOGGING - toggles debug logging, set 1 to enable

You can find an example configuration file here: example/.env.test

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages