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

Testing without rendering webpages #6249

Open
roed314 opened this issue Nov 15, 2024 · 0 comments
Open

Testing without rendering webpages #6249

roed314 opened this issue Nov 15, 2024 · 0 comments
Labels
testing Unit testing framework
Milestone

Comments

@roed314
Copy link
Contributor

roed314 commented Nov 15, 2024

Almost all of the current testing the LMFDB is of the form

  1. Create a webpage
  2. Search for strings in the resulting html

While this is good for ensuring that our core product is functional, it has a cost in that rendering pages is somewhat slow. This makes certain kinds of automated tests not a good idea (we already have to split our testing up into a bunch of different jobs on Github's CI).

There are other kinds of tests that we can add, where we run unit tests on functions without rendering a webpage. For example, see this test I just added in #6248. To be specific, I think we should

  1. Add tests for many of the functions in the lmfdb.utils folder
  2. Add tests for the methods on backend objects like WebAbstractGroup.
@roed314 roed314 added the testing Unit testing framework label Nov 15, 2024
@roed314 roed314 added this to the v1.4 milestone Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Unit testing framework
Projects
None yet
Development

No branches or pull requests

1 participant