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

Improve test coverage and quality #98

Open
9 of 56 tasks
Eggbertx opened this issue Apr 2, 2024 · 0 comments
Open
9 of 56 tasks

Improve test coverage and quality #98

Eggbertx opened this issue Apr 2, 2024 · 0 comments
Assignees
Labels
ongoing An ongoing issue that should not be marked stale tests

Comments

@Eggbertx
Copy link
Collaborator

Eggbertx commented Apr 2, 2024

Packages

  • cmd/gochan
  • cmd/gochan/migration/internal/common
  • cmd/gochan/migration/internal/gcupdate
  • cmd/gochan/migration/internal/kusabax
  • cmd/gochan/migration/internal/pre2021
  • cmd/gochan/migration/internal/tinyboard
  • building
  • config
  • events
  • gcplugin
  • gcsql
  • gcsql/initsql
  • gctemplates
  • gcutil
  • manage
  • posting
  • posting/geoip
  • posting/uploads
  • posting/uploads/inituploads
  • server
  • server/serverutil

Templates

Template tests should be stored in the pkg/gctemplates/templatetests directory, with the package set to templatetests_test. Because they would be calling functions from other packages, they might not affect code coverage as reported by go test -cover, so they can be seen as integration tests.

  • banpage.html
  • boardpage.html
  • captcha.html
  • catalog.html
  • consts.js
  • error.html
  • front.html
  • front_intro.html
  • manage_announcements.html
  • manage_appeals.html
  • manage_bans.html
  • manage_boards.html
  • manage_dashboard.html
  • manage_filebans.html
  • manage_fixthumbnails.html
  • manage_ipsearch.html
  • manage_login.html
  • manage_namebans.html
  • manage_recentposts.html
  • manage_reports.html
  • manage_sections.html
  • manage_staff.html
  • manage_templateoverride.html
  • manage_threadattrs.html
  • manage_viewlog.html
  • manage_wordfilters.html
  • movethreadpage.html
  • page_footer.html
  • page_header.html
  • postbox.html
  • post_edit.html
  • post_flag.html
  • post.html
  • threadpage.html
  • topbar.html
@Eggbertx Eggbertx self-assigned this Apr 2, 2024
@Eggbertx Eggbertx added the tests label Apr 2, 2024
@Eggbertx Eggbertx added the ongoing An ongoing issue that should not be marked stale label May 24, 2024
@Eggbertx Eggbertx changed the title Improve unit test coverage and quality Improve test coverage and quality Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ongoing An ongoing issue that should not be marked stale tests
Projects
None yet
Development

No branches or pull requests

1 participant