Codecademy Logo

Unit Test Development using Generative AI

Generative AI

Generative AI can be a helpful tool, but there are some best practices and ethical considerations we need to keep in mind when using it, such as:

  • no model is perfect
  • don’t assume that the information you give the AI via prompt will be kept secure
  • a new tool doesn’t mean existing best practices are rendered obsolete

Input Validation Tests

When creating input validation tests, we want to systematically verify that an application’s inputs correctly handle a wide range of data.

File Exposure Testing

File exposure testing involves checking whether a web application or script improperly exposes files and directories to users.

Encryption Testing

Encryption testing involves verifying the security and correctness of the encryption and decryption processes in a system.

Access Control Testing

Access control testing involves verifying that the security measures that regulate who or what can view or use resources in a computing environment are functioning as intended.

Cross-Site Scripting

Cross-site scripting is a security vulnerability that allows attackers to inject malicious scripts into webpages viewed by other users.

Cross-Site Scripting Prevention Testing

Cross-site scripting prevention testing involves checking that your web application properly escapes user input.

The techniques that are used to create reliable software are also used to create secure software.

The techniques that are used to create reliable software are also used to create secure software.

Input Validation

Input validation is a process where you check if the data provided by a user or another system meets specific criteria before processing it.

Learn More on Codecademy