Słówka ze Spock tutorial

 0    29 fiche    mdziadon
Télécharger mP3 Imprimer jouer consultez
 
question réponse
equivalent
Creating a test in Spock takes less time than using its standard equivalent
commencer à apprendre
równowartość, odpowiednik, ekwiwalent
hence
These operations can be accomplished by really simple code, hence they do not veil test’s logic
commencer à apprendre
stąd, skutkiem tego, odtąd
veil
These operations can be accomplished by really simple code, hence they do not veil test’s logic
commencer à apprendre
przesłaniać, zasłaniać, przysłaniać
enforces
Spock enforces developers to arrange their tests in BDD
commencer à apprendre
wymusza
consideration
Taking all into consideration I gather that tests created in Spock tend to be more informative, better arranged and easier to understand for other developers
commencer à apprendre
wynagrodzenie, wzgląd, rozwaga
to turn into
Spock has turned testing into an extremely pleasant and rewarding experience
commencer à apprendre
przerodzić się w, zmienić się w, przemienić się
to take notice of
Please take notice how clear a declaration of a test in Spock is
commencer à apprendre
zwrócić uwagę na
arranged
commencer à apprendre
ułożone, zorganizować, zaaranżować, rozmieścić
first of all
First of all we want to specify the context within which we would like to test a functionality
commencer à apprendre
przede wszystkim
concise
commencer à apprendre
zwięzły
tiny
The latter one is particularly interesting as it allows to create an extremely tiny tests
commencer à apprendre
drobny, malutki, maleńki
distinguish
In Spock we can distinguish three classes that are able to override a behaviour of some other class or interface: Stubs, Mocks and Spies
commencer à apprendre
rozróżniać
unlike
In this section we will focus on Stubs as unlike two others imitating other classes is their only responsibility
commencer à apprendre
inaczej, w odróżnieniu
nevertheless
Nevertheless the syntax for imitating behaviour is the same for all three classes, hence everything shown here will work the same way with Mocks and Spies
commencer à apprendre
Niemniej jednak
side effect
If we want to specify some side effect as the result of method invocation...
commencer à apprendre
efekt uboczny
raised
Let’s elaborate a little on the problem that was raised in the previous example
commencer à apprendre
podniesiony, wzniesiony, wypukły
assume
Let’s assume that this exception should be only thrown when the user with name Michael is being saved
commencer à apprendre
założyć
drawback
Using mocks has one drawback though that we have to be aware of
commencer à apprendre
wada, niedogodność, mankament
likewise
commencer à apprendre
również, podobnie, także
prior
commencer à apprendre
wcześniejszy, uprzedni
Bear in mind
commencer à apprendre
Miej na uwadze
Having that in mind
commencer à apprendre
Mając to na uwadze
figure out
By far, you should have figured out from previous examples how to verify whether a certain type of exception has been thrown during the execution of a test
commencer à apprendre
dowiedzieć się, pojąć
impose
To impose the execution of tests in the order in which they appear in class file we need to annotate a class with a @Stepwise annotation
commencer à apprendre
narzucać, nakładać
enhance
Spock tries to enhance the way you write tests, providing you with means to make them more descriptive and as easy to read as stories
commencer à apprendre
zwiększać, wzmacniać, uwydatniać
strive, usiłować
I always strive to make as descriptive test as possible
commencer à apprendre
dążyć, usiłować
apart from
Apart from section labels like given, when, then there is also a label and that can be used to split former labels into groups of related statements
commencer à apprendre
oprócz, abstrahując od
come across
In my current project I often come across classes which responsibility is to filter out invalid inputs.
commencer à apprendre
natknąć się
come up with
As I do not want to list all the conditions in a test name I try to come up with some business definition that would suggest others what is necessary in the particular scenario for positive validation
commencer à apprendre
wymyślić

Vous devez vous connecter pour poster un commentaire.