Skip to content

Quizzy peak testing project - TP final QLA - Equipe : Abdou, Naundoff, Joel#6

Open
JPB-777 wants to merge 6 commits intodannyforest:masterfrom
JPB-777:Quizzy-Peak-Testing-Project
Open

Quizzy peak testing project - TP final QLA - Equipe : Abdou, Naundoff, Joel#6
JPB-777 wants to merge 6 commits intodannyforest:masterfrom
JPB-777:Quizzy-Peak-Testing-Project

Conversation

@JPB-777
Copy link

@JPB-777 JPB-777 commented Mar 20, 2024

No description provided.

Copy link
Owner

@dannyforest dannyforest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Analyze: 5/5
Unitaire: 5/5
Intégration: 1/5
E2E: 1/5

Server dev: +5

Total: 17/20

Partie 1

Tests réalisés:
• Quand la catégorie est sélectionné on affiche le tableau des scores
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seulement s'il y a des scores de disponible

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, je vois juste en dessous. À l'examen, je vais être plus strict et vous devez mettre la précision pour cette ligne.

Tests réalisés:
• Quand la catégorie est sélectionné on affiche le tableau des scores
• Quand il n'y a pas de score a affiché pour la catégorie un message particulier s'affiche
• Quand il n'y a pas de catégorie sélectionné un message particulier s'affiche
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 Cela n'est pas clair. C'est quoi le message? Et par défaut, il n'y a pas de catégorie de sélectionner et il n'y a pas de message. Est-ce que vous vouliez dire après avoir cliqué sur le bouton?

• Quand on complete le quiz la bar de progression affiche la bonne valeur
• Quand on est a l'état initial le timer affiche la bonne valeur
• Quand le temps diminue le timer affiche la bonne valeur
• Quand le composant est unmounted le timer s'arrete
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 Ici, nous ne devrions pas savoir les détails techniques.

• Quand on est a l'état initial le timer affiche la bonne valeur
• Quand le temps diminue le timer affiche la bonne valeur
• Quand le composant est unmounted le timer s'arrete
• Quand on appelle la méthode stop le timer s'arrete
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 même chose

• Quand le composant est unmounted le timer s'arrete
• Quand on appelle la méthode stop le timer s'arrete
• Quand on passe a une question, la question et les choix s'affichent correctement
• Quand un choix de réponse est sélectionné un evenement est émis
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 même chose

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il n'y avait aucun tests d'intégration à faire dans Timer.vue


// Vérifie que les éléments sont rendus correctement
expect(wrapper.find('.timer').exists()).toBe(true);
expect(wrapper.text()).toContain('Time left:');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ici on aurait pu mettre la valeur exacte puisqu'on la connait.

await new Promise(resolve => setTimeout(resolve, 1000));

// Vérifie que le temps restant a été mis à jour
expect(wrapper.text()).toContain('Time left: 0:04');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toBe() serait mieux

await new Promise(resolve => setTimeout(resolve, 1000));

// Vérifie que le temps restant n'a pas changé
expect(wrapper.vm.timeLeft).toBe(timeLeftBeforeStop);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c'est cool comme test ça!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 bons tests unitaire

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