Skip to content

Commit

Permalink
Tests - Add Updater Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Dec 7, 2023
1 parent c2c96e2 commit 2780fe7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ add_executable(${PROJECT_NAME}_test
tests/main.cpp
tests/networktests.cpp
tests/stringtests.cpp
tests/updatertests.cpp
tests/versiontests.cpp
tests/webtests.cpp)

Expand Down
16 changes: 16 additions & 0 deletions tests/updatertests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <gtest/gtest.h>
#include "version.h"
#include "update/updater.h"

using namespace Nickvision::Aura;
using namespace Nickvision::Aura::Update;

TEST(UpdaterTests, ParabolicStableUpdate)
{
Updater updater{ "https://github.com/NickvisionApps/Parabolic" };
Version stable{ updater.fetchCurrentStableVersion() };
std::cout << stable << std::endl;
EXPECT_TRUE(!stable.empty());
EXPECT_TRUE(stable.getVersionType() == VersionType::Stable);
EXPECT_TRUE(stable >= Version("2023.11.1"));
}

0 comments on commit 2780fe7

Please sign in to comment.