vendredi 25 mai 2018

Testing Methodologies Using Python

I need to understand testing methodologies both in terms of an overview and specific examples using Python. I need to cover the following types of testing: dry run, walkthrough, white-box, black-box, integration.

I'm having some conceptual difficulties and would appreciate some clarification for a few specific issues, preferably with code examples if appropriate.

  • Does using a trace table come under white-box testing, or dry-run, or both?

  • Is using doctest in Python for testing specific values an example of black-box or white-box testing?

  • What about the kinds of tests found on sites like Codewars and Hacker Rank - test cases with things like assert_equals(my_function(args), expected) ? Is this black or white box, or something else?

  • Would an example of integration testing be importing a new module and then testing if the program still works as expected?

The context here is very small projects with perhaps just 2 or 3 files written for the purposes of learning.

Having very short examples of code which implements black-box testing and code which implements white-box testing would be very helpful indeed.

Aucun commentaire:

Enregistrer un commentaire