2023-07-21 - Testing #1 - The different types of testing - Chewing the Fat 📈 #6124
Replies: 68 comments 18 replies
-
I have seen automated testing from a distance, so it is definitely good to get a bit of an understanding. |
Beta Was this translation helpful? Give feedback.
-
To me the reason we test is to reduce risk of "failure". So testing effort should be commensurate with the risk. |
Beta Was this translation helpful? Give feedback.
-
Tests are critical and developers often don't have a great understanding of it. It is easy to make a mistake and introduce bugs into already functioning software. From the Product Owners perspective it can be frustrating to see a developer introducing regressions. However, it's important to note that if you notice a pattern of regressions being implemented across multiple developers each time a problem is solved, then it may be caused by technical debt or poor testing practices. In that case, it would be wise to investigate if that is the case and what can be done about it. There is also the team culture at play. The entire team needs to be bought in on the idea of your testing strategy and implementing it. Writing tests take a long time so if only 1 or 2 people are bought in then the rest of the team will pump out a lot more work and will look like they are doing a better job even though there is a higher chance for bugs. |
Beta Was this translation helpful? Give feedback.
-
We should do another CTF series on the different kinds of tests :) Rule is a big wall of text and I think could do with some examples for each testing type |
Beta Was this translation helpful? Give feedback.
-
I love the Glastonbury example in the rule 👍It shows how important load/stress testing is. |
Beta Was this translation helpful? Give feedback.
-
Good introduction to testing. It seems like there is lots of overlap between the types of tests, so I shall put my faith in the many people much better than me to know what to do and when! |
Beta Was this translation helpful? Give feedback.
-
The rule is great! Although this comment:
Is a huge statement for a throwaway box. This needs a rule and/or video itself! |
Beta Was this translation helpful? Give feedback.
-
1 line of code, feels like 15 lines of tests. |
Beta Was this translation helpful? Give feedback.
-
If you use GPT to generate all your tests, should you have meta-tests that ensure the generated tests are appropriate? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Nice intro into testing! Love the stress test example 😊 |
Beta Was this translation helpful? Give feedback.
-
I think tests fall on a spectrum of delivery <-> resilience where the more you test the more resilient your code is, but the less you deliver. It's a balance that needs to be evaluated on a case by case basis. There is no 1 size fits all solution, as with most things. |
Beta Was this translation helpful? Give feedback.
-
With the huge variety of types of tests that occur for client projects, this is a great introduction |
Beta Was this translation helpful? Give feedback.
-
I would love to see a CTF series about detailed exploration of different kinds of testing :) |
Beta Was this translation helpful? Give feedback.
-
Nice explanation that I could understand :) |
Beta Was this translation helpful? Give feedback.
-
I like the idea of testing but have trouble applying the knowledge, it's an almost entirely separate art to actually making the app. Mocking is one of the biggest downsides to testing, and it's been the biggest pain point for me every single time I've had to interact with it. I think that the rule is highly detailed, but there is some extraneous stuff that could be left out or separated. |
Beta Was this translation helpful? Give feedback.
-
Love the rule because it just gave me more insights about testing. I often have the feeling that implementing tests took too much time, but I also understand its importance in all cases. As we said, it's crucial to discover any bugs at the beginning rather than later on. |
Beta Was this translation helpful? Give feedback.
-
Spending much time writing unit tests to reach a high percentage of code coverage is unrealistic sometimes.
Based on my working experience, the smoking test is extremely important since it ensures every deployment is functional. E2E is hard to implement and only be used on the mobile end. Regression-test will be required much more often than your expectation since the complexity of projects grows fast nowadays. |
Beta Was this translation helpful? Give feedback.
-
Just yesterday I wrote an unit test that covers a method for checking data payload that covers all the bad data I could think of. What it should do is expect an argument exception and pass the test. However, the test failed and the bad data went through. I found out later that there were cases I didn't initially thought of when developing the feature. So now I have a bug to fix. Just maybe this could be avoided if it was done in TDD style. |
Beta Was this translation helpful? Give feedback.
-
I like the video, I didn't know testing well before, but it makes me know it more systematically. |
Beta Was this translation helpful? Give feedback.
-
Testing is highly crucial in software engineering yet only few clients I have worked with spend time to write tests because of budget. With testing, we can easily identify bugs, ensure software quality, validate requirements and so much more. It guarantees a reliable and secure product, meeting user expectations and industry standards |
Beta Was this translation helpful? Give feedback.
-
Nice video. The first time heard about the Testing Pyramid, a few other knowledge learned from the rule and video. I remember reading a blog in which the author says he is not doing Test-Driven-Development, instead, he is doing Testbility-Driven-Development. If he notices he has to write many tests or do a lot of mocks, probably means his class or function or even the whole architecture is too complicated or has too much dependence on each other. He would spend more time refactoring his code. I feel his approach is more realistic because, in the real world, it's always a balance between time, and $ and quality. Most of the time we probably cannot write all tests, but can use tests to help keep a mindset for developing simple, clean applications. |
Beta Was this translation helpful? Give feedback.
-
Great video and nice summary in the rule ! |
Beta Was this translation helpful? Give feedback.
-
I find people either
People often forget the importance of keeping tests simple and isolated. |
Beta Was this translation helpful? Give feedback.
-
Looking forward to seeing when most of us write tests. Before, during, or after building a feature. Are we a group of TDD purists (before) or do we think a bit differently and write code towards the user requirement first, then write tests to cover what we have done.? |
Beta Was this translation helpful? Give feedback.
-
I think testing is important but it's heavily dependent on what type of work is being done. Sometimes tests are too difficult to mock or are just simply not needed. Other times, having a strong suite of unit tests can ensure that over time as the application changes, the intended functionality remains the same. |
Beta Was this translation helpful? Give feedback.
-
Unit test is essential for refactoring. It is a minimal guarantee that the behaviour has not been modified. |
Beta Was this translation helpful? Give feedback.
-
Great video! Simple explanation of what seems to be a vast and complicated topic. |
Beta Was this translation helpful? Give feedback.
-
Nice to see a CTF on Testing, I know I lack some skills there. I have often encountered clients who explicitly requested not to write any tests because they didn't want the devs to spend time on them and wanted the devs to focus on the features. Those client considered it was a waste of money, and obviously, they were impossible to convince. |
Beta Was this translation helpful? Give feedback.
-
Great CTF! I love the breakdown of the different types of testing! This better summarised the information from a entire course at University 😁 |
Beta Was this translation helpful? Give feedback.
-
Awesome CTF! I would like to go deeper in it |
Beta Was this translation helpful? Give feedback.
-
Hey testers!
Let's talk about this rule
Beta Was this translation helpful? Give feedback.
All reactions