probat-testing

Generate ProBat unit tests for TLPP code with annotations.

176|37|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/thalysjuvenal/advpl-specialist --skill probat-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: probat-testing
Source: https://github.com/thalysjuvenal/advpl-specialist/tree/main/skills/probat-testing
Command: npx skills add https://github.com/thalysjuvenal/advpl-specialist --skill probat-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of ProBat unit tests for TLPP code, ensuring code quality and maintainability within the TOTVS Protheus ecosystem.

Core Features & Use Cases

  • Automated Test Generation: Create ProBat tests for TLPP classes and functions.
  • Best Practice Adherence: Ensures tests follow ProBat conventions and annotations.
  • Use Case: When developing a new TLPP module, use this Skill to quickly generate a comprehensive suite of unit tests, significantly speeding up the development cycle and improving code reliability.

Quick Start

Use the probat-testing skill to generate ProBat unit tests for the TLPP function 'U_CalculateTotal' located in 'my_module.tlpp'.

Frequently Asked Questions about probat-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate ProBat unit tests for TLPP code in TOTVS Protheus?

To generate ProBat unit tests for TLPP code, you can automate test creation by providing your TLPP function or class. This automatically produces a comprehensive suite of unit tests adhering to ProBat conventions, significantly speeding up your development cycle.

What TLPP annotations are supported when creating automated ProBat tests?

When creating automated ProBat tests, the generation supports TLPP annotations including @TestFixture, @Test, @Setup, and @TearDown. Adhering to these TLPP syntax conventions ensures effective test creation within the TOTVS Protheus environment.

Can I use test-driven development workflows with ProBat and TLPP classes?

Yes, you can facilitate test-driven development workflows with ProBat and TLPP classes. Generating tests upfront supports TDD practices and enables code coverage analysis to ensure code reliability and maintainability within the TOTVS Protheus ecosystem.

What is the best way to ensure my ProBat tests follow TLPP framework conventions?

The best way to ensure ProBat tests follow TLPP framework conventions is through automated generation. This approach enforces best practices and ProBat framework conventions, ensuring your tests are correctly structured for the TOTVS Protheus environment.

Does automated ProBat test generation work for any TLPP function or class?

Automated ProBat test generation works for TLPP classes and functions, such as generating tests for a function like 'U_CalculateTotal' in 'my_module.tlpp'. It requires your input to adhere to TLPP syntax for effective test creation.

Why do I need to follow TLPP syntax for ProBat unit testing?

You need to follow TLPP syntax because the test generation requires adherence to TLPP syntax and ProBat framework conventions to effectively create tests. This ensures the generated tests properly integrate with your TOTVS Protheus codebase.