gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
179 stars 134 forks source link

Adding quiz error handling when answering a question or completing quiz #2595

Closed brianhogg closed 7 months ago

brianhogg commented 7 months ago

Description

Fixes #2594

How has this been tested?

Manually by turning off the database temporarily

Screenshots

https://github.com/gocodebox/lifterlms/assets/627497/edea79bb-950a-4f58-be4a-73d5223b3444

Types of changes

Error handling when answering a question or submitting a quiz.

Checklist:

github-actions[bot] commented 7 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements 77.18% 328/425
🟑 Branches 68.45% 141/206
🟒 Functions 82.93% 68/82
🟑 Lines 76.68% 319/416

Test suite run success

169 tests passing in 22 suites.

Report generated by πŸ§ͺjest coverage report action from af7d3f49a34fb37fcc9e29d78212b5199a051221

codeclimate[bot] commented 7 months ago

Code Climate has analyzed commit af7d3f49 and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2
Duplication 2

The test coverage on the diff in this pull request is 2.8% (50% is the threshold).

This pull request will bring the total coverage in the repository to 56.3%.

View more on Code Climate.