Skip to content

Conversation

@kmotrebski
Copy link
Contributor

@kmotrebski kmotrebski commented Nov 28, 2024

Every test should be isolated from others. So it must be possible to invoke them in parallel or in any order.

To zdanie należy usunąć, ponieważ jest ono tak samo prawdziwe w stosunku do testów klasycystycznych jak i mockistycznych.

Każdy test, zarówno mockistyczny jak i klasycystyczny powinien być niezależny.

Mało tego, nawet jeśli nieumiejętnie zastosuję tą zasadę (czytaj: nie zastosuję), a więc otrzymam testy zależne, to nic to nie zmienia. Testy mockistyczne zależne dalej będą testami mockistycznymi, a testy klasycystyczne zależne, dalej będą testami klasycystycznymi.

@kmotrebski

This comment was marked as duplicate.

@sarven
Copy link
Owner

sarven commented Jan 3, 2025

Racja 👍 jak to pisałem to chodziło bardziej o definicję co znaczy izolacja w każdym z tych podejść, ale jest to tak napisane, że można to źle zrozumieć.


for non-polish readers

The removed sentences are valid for both schools; they were written that way to illustrate the definition of isolation in each approach, but this could be misleading.

@sarven sarven merged commit 4c6cf0c into sarven:main Jan 3, 2025
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