CPPPROGLIB Telegram 6026
🧪 Промпт дня: Создания тестов в C++

Мы подготовили для вас полезный промпт, который поможет быстро создать качественные тесты для любых C++ функций с использованием современных фреймворков.


✏️ Промпт:

Create two [ define technology ] tests for the above 'tempFunction' function. One that is expected to pass and one that is expected to fail.


Где [ define technology ] — это ваш тестовый фреймворк (Google Test, Catch2, Boost.Test и т.д.).


Пример использования:

Create two Google Test tests for the above 'calculateAverage' function. One that is expected to pass and one that is expected to fail.

Create two Catch2 tests for the above 'validateEmail' function. One that is expected to pass and one that is expected to fail.


💡Такой подход поможет вам:

• Создать тесты в едином стиле
• Покрыть как успешные, так и неуспешные сценарии
• Быстро адаптироваться к любому тестовому фреймворку
• Обеспечить базовое покрытие для локальной валидации


🍴 Какие тестовые фреймворки вы используете в своих C++ проектах? Делитесь опытом в комментариях!

Библиотека C/C++ разработчика

#буст
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🔥2😁2



tgoop.com/cppproglib/6026
Create:
Last Update:

🧪 Промпт дня: Создания тестов в C++

Мы подготовили для вас полезный промпт, который поможет быстро создать качественные тесты для любых C++ функций с использованием современных фреймворков.


✏️ Промпт:

Create two [ define technology ] tests for the above 'tempFunction' function. One that is expected to pass and one that is expected to fail.


Где [ define technology ] — это ваш тестовый фреймворк (Google Test, Catch2, Boost.Test и т.д.).


Пример использования:

Create two Google Test tests for the above 'calculateAverage' function. One that is expected to pass and one that is expected to fail.

Create two Catch2 tests for the above 'validateEmail' function. One that is expected to pass and one that is expected to fail.


💡Такой подход поможет вам:

• Создать тесты в едином стиле
• Покрыть как успешные, так и неуспешные сценарии
• Быстро адаптироваться к любому тестовому фреймворку
• Обеспечить базовое покрытие для локальной валидации


🍴 Какие тестовые фреймворки вы используете в своих C++ проектах? Делитесь опытом в комментариях!

Библиотека C/C++ разработчика

#буст

BY Библиотека C/C++ разработчика | cpp, boost, qt


Share with your friend now:
tgoop.com/cppproglib/6026

View MORE
Open in Telegram


Telegram News

Date: |

‘Ban’ on Telegram A Hong Kong protester with a petrol bomb. File photo: Dylan Hollingsworth/HKFP. Healing through screaming therapy On Tuesday, some local media outlets included Sing Tao Daily cited sources as saying the Hong Kong government was considering restricting access to Telegram. Privacy Commissioner for Personal Data Ada Chung told to the Legislative Council on Monday that government officials, police and lawmakers remain the targets of “doxxing” despite a privacy law amendment last year that criminalised the malicious disclosure of personal information. Each account can create up to 10 public channels
from us


Telegram Библиотека C/C++ разработчика | cpp, boost, qt
FROM American