ESP32-S2 Unit Testing Using Unity

Hi,

I am attempting to run unit tests on an ESP32-S2 Dev Module over Native USB. The test code is below. When I use the Test Verbose option inside PIO, the code compiles and uploads, but gets hung up shortly thereafter. Any help or advice would be appreciated here!

The COM port for the ESP32-S2 shows and reads as actively being used, so I think it has something to do with the Unity commands not sending print statements to the correct Serial port?

/**
 * @file test_revf4_main.cpp
 * @version 1.0.0
 * @author Braidan Duffy (bduffy2018@my.fit.edu)
 * @brief 
 * @date 2022-11-30
 * Last Modified: 
 * 
 * @copyright Copyright (c) 2022
 * 
 * CHANGELOG:
 * Version 1.0.0 - Initial Release
 */

#include <Arduino.h>
#include <unity.h>

String STR_TO_TEST;

void setUp(void) {
    // set stuff up here
    STR_TO_TEST = "Hello, world!";
}

void tearDown(void) {
    // clean stuff up here
    STR_TO_TEST = "";
}

void test_string_concat(void) {
    String hello = "Hello, ";
    String world = "world!";
    TEST_ASSERT_EQUAL_STRING(STR_TO_TEST.c_str(), (hello + world).c_str());
}

void test_string_substring(void) {
    TEST_ASSERT_EQUAL_STRING("Hello", STR_TO_TEST.substring(0, 5).c_str());
}

void test_string_index_of(void) {
    TEST_ASSERT_EQUAL(7, STR_TO_TEST.indexOf('w'));
}

void test_string_equal_ignore_case(void) {
    TEST_ASSERT_TRUE(STR_TO_TEST.equalsIgnoreCase("HELLO, WORLD!"));
}

void test_string_to_upper_case(void) {
    STR_TO_TEST.toUpperCase();
    TEST_ASSERT_EQUAL_STRING("HELLO, WORLD!", STR_TO_TEST.c_str());
}

void test_string_replace(void) {
    STR_TO_TEST.replace('!', '?');
    TEST_ASSERT_EQUAL_STRING("Hello, world?", STR_TO_TEST.c_str());
}

void setup()
{
    delay(2000); // service delay

    UNITY_BEGIN();

    RUN_TEST(test_string_concat);
    RUN_TEST(test_string_substring);
    RUN_TEST(test_string_index_of);
    RUN_TEST(test_string_equal_ignore_case);
    RUN_TEST(test_string_to_upper_case);
    RUN_TEST(test_string_replace);

    UNITY_END(); // stop unit testing
}

void loop()
{
}
Building & Uploading...

Testing...
If you dont see any output for the first 10 secs, please reset board (press reset button)