pharo-wiki icon indicating copy to clipboard operation
pharo-wiki copied to clipboard

Write documentation on test resources

Open jecisc opened this issue 3 years ago • 2 comments

jecisc avatar Jul 21 '20 18:07 jecisc

A bit more explanation what this mean for us that don't know exactly what test resources are

kilon avatar Jul 24 '20 21:07 kilon

It's the reason I would like to write a page for it but I need to find the time.

Test resources is a resource of SUnit that can be linked to a test case. It will be setup before running any test, and will be tear down after the tests are finished.

Compare to the #setUp and #tearDown method, it is setup/teardown once for all the tests of the test resource. This can be an equivalent to the @beforeClass and @afterClass of JUnit kind of.

It is useful when you have a resource taking some time to setup and that is used in read only and never updated.

jecisc avatar Jul 24 '20 21:07 jecisc