Print what() in tests if an exception is thrown.
the build was successful Details

This commit is contained in:
tastytea 2019-04-15 02:00:05 +02:00
parent 5b387a1c7b
commit fa3eefdb74
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
6 changed files with 12 additions and 2 deletions

View File

@ -55,6 +55,7 @@ SCENARIO ("/api/v1/accounts/:id can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{
@ -88,6 +89,7 @@ SCENARIO ("/api/v1/accounts/:id can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{

View File

@ -67,6 +67,7 @@ SCENARIO ("/api/v1/accounts/:id/followers can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{

View File

@ -51,7 +51,7 @@ SCENARIO ("/api/v1/accounts/:id/following can be called successfully",
{
try
{
ret = masto.get(API::v1::accounts_id_followers,
ret = masto.get(API::v1::accounts_id_following,
{
{ "id", { user_id } },
{ "limit", { "5" } }
@ -67,6 +67,7 @@ SCENARIO ("/api/v1/accounts/:id/following can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{
@ -93,7 +94,7 @@ SCENARIO ("/api/v1/accounts/:id/following can be called successfully",
{
try
{
ret = masto.get(API::v1::accounts_id_followers,
ret = masto.get(API::v1::accounts_id_following,
{
{ "id", { user_id } },
{ "limit", { "5" } }

View File

@ -55,6 +55,7 @@ SCENARIO ("/api/v1/accounts/update_credentials can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{
@ -88,6 +89,7 @@ SCENARIO ("/api/v1/accounts/update_credentials can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{

View File

@ -53,6 +53,7 @@ SCENARIO ("/api/v1/accounts/verify_credentials can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{
@ -85,6 +86,7 @@ SCENARIO ("/api/v1/accounts/verify_credentials can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{

View File

@ -50,6 +50,7 @@ SCENARIO ("/api/v1/instance can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{
@ -82,6 +83,7 @@ SCENARIO ("/api/v1/instance can be called successfully",
catch (const std::exception &e)
{
exception = true;
WARN(e.what());
}
THEN("No exception is thrown")
{