uprm-inso4117-2023-2024-s2 / semester-project-study-pet

semester-project-study-pet created by GitHub Classroom
1 stars 3 forks source link

Added property based testing to the minigame component #316

Closed AnthonyMed13 closed 2 months ago

AnthonyMed13 commented 3 months ago

Implemented a property based test for the minigame component. This includes test to ensure that the number of questions given is inline with what we expected, generating values that are outside of our expected values and ensuring that even if other inputs are given the test can still detect them. This uses mocks of the expected data to function.

PinkSylvie commented 3 months ago

Hello! Could you explain how to run these tests and what we should be looking out for?

AnthonyMed13 commented 3 months ago

Hello! Could you explain how to run these tests and what we should be looking out for?

I set it up to be able to run when you run "npm run test-jest" if it were to fail it would output the rendered page. If it doesnt fail it just says passed like this: image

PinkSylvie commented 2 months ago

image I was able to see the minigame tests pass, but had some issues with others. But that probably is because my loptop doesnt take nicely the firefox popups. image image