[No Audio]
So now we've marked up a test as
being testable with it @Test annotation.
In this video, we're going to see how we
can run it in the IDE so we can see what
test success actually looks like. So let's jump in
now and pick up where we left off. So click that.
[No Audio]
And you can see here,
[No Audio]
that this is the test class.
These are the test methods which
were found in that class.
And because we have these ticks here, it
means that all of the test methods which
were included in the test class have passed.
In other words, it didn't fail.
And if all of those test methods, if you imagine
if we had a lot of different test methods here,
if all of those test methods pass, and in turn,
the test class itself is deemed to have passed.
And you can also see this here
as well, it says test passed.
1 test passed, out of a total of
1 test, and it took one millisecond. So
that's the @Test annotation, which JUnit provides,
which marks methods in the test class as being
actual test methods, which will appear in this test
runner output because they've been marked for
inclusion as test methods within the test class.
So with unit tests, whenever you see something
that's green, that's generally a good thing.
It means green is good.
Good for go, green for go. All good.
The tests have passed.
So that's always a good thing.
That's what test success looks like.
And we've seen that in this video.
So next video, we're going to explore what
test failure looks like, coming up next.