Skip to main content
fixed grammar, title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Readable unit tests that explain the Class better? Test case for a caching library

This shows a testcasetest case for an old caching library that I use for a project. It features simple save/load/delete functions (sadly static calls) but what I want to focus on is the test code written for this class.

Recently we got this great change to show off code, so I'd like to ask you if you can read that testcodetest code, understand what the class might do and how you would improve upon it.

Readable unit tests that explain the Class better?

This shows a testcase for an old caching library that I use for a project. It features simple save/load/delete functions (sadly static calls) but what I want to focus on is the test code written for this class.

Recently we got this great change to show off code, so I'd like to ask you if you can read that testcode, understand what the class might do and how you would improve upon it.

Test case for a caching library

This shows a test case for an old caching library that I use for a project. It features simple save/load/delete functions (sadly static calls) but what I want to focus on is the test code written for this class.

Recently we got this great change to show off code, so I'd like to ask you if you can read that test code, understand what the class might do and how you would improve upon it.

How to improve this to a readable Unittests Readable unit tests that explain the Class better  ?

for starters i though of going with a mostly code only example.

This shows a testcase for an old caching library ithat I use for a project. It features simple save/load/delete functions (saidlysadly static calls) but what iI want to talk aboutfocus on is the test code written for this class.

In my opinion the Unittestsunit tests for a class should show of how all functions of ain the class work and what to expectexpect from that class.

So sinceRecently we got this great change to show off code i'd, so I'd like to ask you if you can read that testcode, understand what the class might do and how you would improve upon it.

How to improve this to a readable Unittests that explain the Class better  ?

for starters i though of going with a mostly code only example.

This shows a testcase for an old caching library i use for a project. It features simple save/load/delete functions (saidly static calls) but what i want to talk about is the test code written for this class.

In my opinion the Unittests for a class show of how all functions of a class work and what to expect from that class.

So since we got this great change to show off code i'd like to ask you if you can read that testcode, understand what the class might do and how you would improve upon it.

Readable unit tests that explain the Class better?

This shows a testcase for an old caching library that I use for a project. It features simple save/load/delete functions (sadly static calls) but what I want to focus on is the test code written for this class.

In my opinion the unit tests for a class should show how all functions in the class work and what to expect from that class.

Recently we got this great change to show off code, so I'd like to ask you if you can read that testcode, understand what the class might do and how you would improve upon it.

edited tags
Link
user185
user185
edited body
Source Link
edorian
  • 1.5k
  • 1
  • 12
  • 16
Loading
Source Link
edorian
  • 1.5k
  • 1
  • 12
  • 16
Loading