Skip to content

Instantly share code, notes, and snippets.

@thuytrinh
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thuytrinh/9c76767efb12991f4899 to your computer and use it in GitHub Desktop.
Save thuytrinh/9c76767efb12991f4899 to your computer and use it in GitHub Desktop.
Các câu hỏi phát sinh khi đọc JUnit in Action (2nd Edition)
  • Tại sao nói "On the other hand, black box tests can bring more value than white box tests."? Có những ví dụ cụ thể nào để chứng minh điều này?
  • Tại sao mình phải measure test coverage?
@thuytrinh
Copy link
Author

Black box tests are more difficult to write and run because they usually deal with a graphical front end, whether a web browser or desktop application. Another issue is that a valid result on the screen doesn’t always mean the application is correct. White box tests are usually easier to write and run, but the developers must implement them.

Hãy tìm những ví dụ cụ thể liên quan tới AndroidDev?

@thuytrinh
Copy link
Author

Because you can write white box unit tests against protected, package- private, and public methods, you get more code coverage.

Mình làm được điều này trong AndroidDev như thế nào?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment