Skip to content

Conversation

mwtrew
Copy link
Contributor

@mwtrew mwtrew commented Sep 1, 2025

This allows more granular control over test visibility. Instead of relying on hiddenFromRoles: [ 'TEACHER' ] to hide certain tests from the list of available tests (which also implies making them inaccessible via a direct link), we can hide them from that list using nofilter while still allowing them to be accessed via direct link.


Not strictly related, but this PR also adds a new it-postgres container to the local compose file, which avoids this dance and makes it easier to develop integration tests. I'll update the wiki once this is merged.

This allows more granular control over test visibility. Instead of
relying on `hiddenFromRoles` to hide certain tests from the list of
available tests (which also implies making them inaccessible via
a direct link), we can hide them from that list using `nofilter` while
still allowing them to be accessed via direct link.
This means we won't need to clear and restore our local DB in order
to work with test data - this one will load the integration test data
by default.
@codecov
Copy link

codecov bot commented Sep 2, 2025

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@fe62a63). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...in/java/uk/ac/cam/cl/dtg/isaac/api/QuizFacade.java 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #719   +/-   ##
=======================================
  Coverage        ?   36.53%           
=======================================
  Files           ?      536           
  Lines           ?    23699           
  Branches        ?     2857           
=======================================
  Hits            ?     8658           
  Misses          ?    14182           
  Partials        ?      859           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mwtrew mwtrew marked this pull request as ready for review September 2, 2025 09:41
@mwtrew mwtrew requested a review from jsharkey13 September 2, 2025 09:53
@jsharkey13 jsharkey13 merged commit 6bae6f3 into main Sep 2, 2025
5 checks passed
@jsharkey13 jsharkey13 deleted the improvement/respect-nofilter-in-set-tests branch September 2, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants