Reading 6
Random Module
- random.randint(0 , 10) - this will output a random number between 1 - 10
- random.choice([“dog”, “cat”, “bird, “mouse”]) - will randomly choose from the list
- random.shuffle([mylist]) - randomly shuffles the contents of the given list
- random.randrange(start, stop, step) - selects a random range and step sequence
source: https://www.pythonforbeginners.com/random/how-to-use-the-random-module-in-python
What is Risk Analysis in Software Development
- This describes the process of identifying risk, assessing the severity, and making decisions to mitigate those risks.
- Certain risks cannot be avoided, such as the time used in tests, customer urgency, and incomplete requirements.
- Risk Magnitude can be assigned to each risk factor: High, Medium, Low
- Cause, Effect, and Likelihood, when applied to each risk factor, will help prioritize the order and need for mitigating solutions.
What is Test Coverage?
- Test coverage is looking for untested parts of code and ….getting it tested!
How Do You Know if You Have Done Enough Testing?
- You rarely get bugs that escape into production, and
- You are rarely hesitant to change some code for fear it will cause production bugs.
- It is certainly possible to test too much.
- are your tests slowing you down?
- can you remove tests without affecting coverage?