Skip to content

Testing - add a testing environment #191

@asidelnik

Description

@asidelnik

CI Testing

  • Create a remote "testing" branch.
  • Only "testing" branch can be merged into main
    • GitHub Actions Workflow - branch-check file
    • Branch Protection Rules

Triggers

  • Trigger: commit
    • Action: lint
  • Trigger: push
    • Action: lint, build, local tests
  • Trigger: pull request to testing

To Mock or Not

  • What if the tests require server updates? How to synchronize?
    • What if I don't control the server?
    • Possible solution - mock
    • Possibly the best solution regarding time constraints. If I mock, i won't need much of the workflow.

CI Testing

Need to solve testing Playwright out of localhost env.

Testing env

  • Problem - github action "Test on PR" prevents merging branches.
  • Cause - localhost is not run at the Github action
  • Solution:
    • Add a testing env (domain)
    • Push to testing env/branch (without testing)
    • Perform the automatic tests on the testing env/domain
    • If success, merge to prod

Metadata

Metadata

Assignees

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions