MitocGroup / recink

REciNK - Rethink Continuous Integration for JavaScript Applications
https://www.npmjs.org/package/recink
Mozilla Public License 2.0
14 stars 5 forks source link

Add an option to configure tests components in recink run terraform command #131

Closed avozicov closed 6 years ago

avozicov commented 6 years ago

e2e component should contain 3 levels: first level: - framework used to perform e2e tests (e.x. TestCafe)

second level under framework option: - screenshot used to configure screenshots component - browsers used to define browser type and mode (e.x. firefox --headless)

unit component should contain 3 levels: first level: - framework

second level under framework option: - options

Configuration Example

rds_restore:
  root: './rds_restore'
  terraform:
    version: 0.11.0
    plan: false
    apply: false
    destroy: false
    test:
      mapping: './tests/mapping.json'
      plan: './tests/unit'
      mocha:
         options:
          ui: 'bdd'
          reporter: 'spec'

      apply: './tests/e2e'
      testcafe:
      screenshot:
        enabled: true
        take-on-fail: true
        path: './tests/e2e/screenshots'
      browsers:
        - firefox --headless
avozicov commented 6 years ago

Test Passed Acceptance Criteria:

Please refer bellow to the template configuration of .recink.yml


  root: './rds_restore'
  terraform:
    version: 0.11.0
    plan: false
    apply: true
    destroy: false
    test:
      mapping: './tests/mapping.json'
      plan: './tests/unit/tf_script/forces-new-resources.spec.js'
      apply: './tests/e2e/suite/services/rds/aws_db_instance.e2e.js'
      e2e:
        invalid:
          screenshot:
            enabled: true
            take-on-fail: true
            path: './tests/e2e/'
          browsers:
            - firefox --headless```
eistrati commented 6 years ago

Checked.