avantifellows / quiz-frontend

A generic player for playing different types of content (questions, etc.) in a mobile-friendly webapp
GNU General Public License v3.0
4 stars 23 forks source link

Display solutions in assessments #144

Closed suryabulusu closed 7 months ago

suryabulusu commented 7 months ago

Fixes #143

Summary

If display_solution is true and quiz has ended, we display solutions in Body for assessments.

Test Plan

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 92.85714% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 79.37%. Comparing base (d3766d8) to head (bc7c19e).

Files Patch % Lines
src/components/Questions/Body.vue 90.90% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #144 +/- ## ========================================== - Coverage 79.40% 79.37% -0.03% ========================================== Files 17 17 Lines 1408 1411 +3 Branches 409 415 +6 ========================================== + Hits 1118 1120 +2 + Misses 290 255 -35 - Partials 0 36 +36 ``` | [Flag](https://app.codecov.io/gh/avantifellows/quiz-frontend/pull/144/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=avantifellows) | Coverage Δ | | |---|---|---| | [chrome](https://app.codecov.io/gh/avantifellows/quiz-frontend/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=avantifellows) | `79.37% <92.85%> (-0.03%)` | :arrow_down: | | [ui](https://app.codecov.io/gh/avantifellows/quiz-frontend/pull/144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=avantifellows) | `79.37% <92.85%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=avantifellows#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.