Thanks to visit codestin.com
Credit goes to github.com

Skip to content

end-to-end tests #7

@mrblog

Description

@mrblog

If we wanted e2e tests / CI, here's the steps as I see it:

  • Add some basic unit tests (jest) and run those first in the CI build
  • Pull the server repo
  • Set up a Mysql instance
  • create a npm run resetdb method to reset the database with the test data before each test
  • Use the mock version of Google Places API and make sure all test-run queries are prepared
  • build and start the PHP Lumen API in "testing" mode with CI .env config
  • Run cypress tests

Still leaves open the question of how to handle the email / confirmation step for posting a score / grade. Possibly tail the PHP logfile for the emailed link (since the tests use the "log" email driver and write the emails to the log, rather than sending).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions