Skip to content

Commit

Permalink
Fix CI badge; add Coveralls badge (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xg0nz0 committed Mar 13, 2024
1 parent bf7a3de commit 9fa68c2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Iggy C++ Client

[![Super-Linter](https://github.com/iggy-rs/iggy-cpp-client/actions/workflows/ci/badge.svg)](https://github.com/marketplace/actions/super-linter)
[![CI](https://github.com/iggy-rs/iggy-cpp-client/actions/workflows/ci.yml/badge.svg)](https://github.com/marketplace/actions/super-linter) [![Test Coverage](https://coveralls.io/repos/github/iggy-rs/iggy-cpp-client/badge.svg?branch=main)](https://coveralls.io/github/iggy-rs/iggy-cpp-client?branch=main)

This project aims to create a full C++ clients for [Iggy.rs](https://iggy.rs). It is as much a learning project as a fully functional one.
This project aims to create a full C++ client for [Iggy.rs](https://iggy.rs).
6 changes: 4 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ if(BUILD_TESTS)
add_executable(
iggy_cpp_test

model_test.cc
client_test.cc
iggy_protocol_provider_test.cc
model_test.cc
)
target_link_libraries(
iggy_cpp_test

iggy
Catch2::Catch2
Catch2::Catch2WithMain
reproc++
)

add_executable(
Expand Down Expand Up @@ -45,7 +47,7 @@ if(BUILD_TESTS)
DEPENDENCIES iggy)

setup_target_for_coverage_gcovr_html(
NAME coverage-html
NAME coverage
EXECUTABLE iggy_cpp_test
EXCLUDE "build/vcpkg_installed/*" "tests/*"
DEPENDENCIES iggy)
Expand Down
10 changes: 10 additions & 0 deletions tests/client_test.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#define CATCH_CONFIG_MAIN
#include "../sdk/client.h"
#include "unit_testutils.h"

TEST_CASE("client connection", UT_TAG) {
iggy::client::Options options;
auto client = iggy::client::Client(options);
auto stats = client.getStats();
REQUIRE(&stats != nullptr);
}
2 changes: 1 addition & 1 deletion tests/iggy_protocol_provider_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "../sdk/net/iggy.h"
#include "unit_testutils.h"

TEST_CASE("check supported Iggy protocols", UT_TAG) {
TEST_CASE("Iggy protocols", UT_TAG) {
iggy::net::IggyProtocolProvider provider;

SECTION("enumerate supported protocols") {
Expand Down
2 changes: 1 addition & 1 deletion tests/model_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "../sdk/model.h"
#include "unit_testutils.h"

TEST_CASE("simple test for model objects", UT_TAG) {
TEST_CASE("model objects", UT_TAG) {
iggy::model::system::Stats stats;
REQUIRE(&stats != nullptr);
}

0 comments on commit 9fa68c2

Please sign in to comment.