Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Unit / integration / feature tests #203

Open
sy238-unikent opened this issue Dec 1, 2017 · 4 comments
Open

API Unit / integration / feature tests #203

sy238-unikent opened this issue Dec 1, 2017 · 4 comments

Comments

@sy238-unikent
Copy link
Contributor

sy238-unikent commented Dec 1, 2017

Need to setup a good framework for testing the API, including fixture data, etc.

As part of that, lets fix all the not currently implemented test stubs.

@samyapp
Copy link
Contributor

samyapp commented Dec 8, 2017

Short term I think testing making requests at the API level would be a good start:
https://laravel.com/docs/5.4/http-tests#testing-json-apis

@samyapp
Copy link
Contributor

samyapp commented Dec 13, 2017

Fixtures:

  • 4 users, 1 of them an admin.
  • 1 site, with the non-admin users as an owner, editor and contributor.
  • 2 test site definitions
  • 2 test layout definitions
  • Entirely unpublished pages:
  • Homepage
    • Page 1
      • Subpage 1.1
      • Subpage 1.2
    • Page 2
      • Subpage 2.1
      • Subpage 2.2
  • Data providers to provide both valid and invalid json request data, together with expected response status codes and json data.

@samyapp
Copy link
Contributor

samyapp commented Dec 15, 2017

Starting with tests around the createsite api endpoint.

@samyapp
Copy link
Contributor

samyapp commented Dec 21, 2017

Needs more work in 2018... https://github.com/unikent/astro/tree/feature/api-feature-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants