GlossaryProcess

What is testing?

Testing is the process of checking code for errors and ensuring it works as intended.

Testing is a crucial part of the software development process. It involves running code to find and fix errors before the software is released. This helps ensure that the application functions correctly and meets user needs.

There are different types of testing, including unit testing, where individual parts of the code are tested, and integration testing, where different parts work together. By identifying issues early, testing saves time and resources in the long run.

For example, if you create a function to add two numbers, you would test it to make sure it returns the correct sum. If it doesn’t, you can fix it before it causes problems for users.

Example

testResult = addNumbers(2, 3) // test if it returns 5

Want to use Testing in real work?

WeCode workshops are built around AI coding tools. Pick a tier, or browse more glossary entries to get the lay of the land.