Files
jtest/main.cpp

37 lines
1.0 KiB
C++

//
// Created by dawsh on 6/16/24.
//
#include <cassert>
#include "include/jtest/jtest.hpp"
// TODO: Look into a different mechanism more similar to gtest wherein we have a TEST macro that declares and "registers" a test, and then inside our main block we call RUN_ALL_TESTS(argc, argv);
// TODO: Keep running tally of total checks, checks passed, and checks failed
// TODO: Provide introspection insofar as which assertion check failed.
// TODO: Provide alternate checks (google test has specific assertations for handling floats, for example) (Are these actually necessary??)
// TODO: Automatic test discovery
// TODO: Implement log-file-specification-capability in jlog so we can log to test_results.txt specifically.
// TODO: Provide benchmarking on test running-time
int main(int argc, char** argv)
{
TEST("Test1", []{
jtest::check(2+2 == 4);
});
TEST("Test2", [] {
jtest::check(2+2 == 5);
});
/*
TEST("LMAO");
TEST("KEKERINO")
TEST(":)")
*/
// Doesn't actually do anything yet
jtest::run_tests();
}