Integration testing

I have written many “integration test” whos purpose is to test custom developed hardware.

The basic structure for all tests are like something like this.

  • I press a button on the custom hardware.
  • Test program answers by printing " button pressed "

My integrations tests are placed below the “test” folder in the PlatformIO recomended structure.Integration test is started by

cli test --filter “wanted test”

My problem is that the Serial.print dont seems to work …

Any solutions for me ??

That is very board. What is the most minimal platformio.ini and test code that reproduce your problem?

Thanks for fast response.

You mean it is a broad question ???

My filesystem is like this…

prj
   lib
      module1.h
      module2.h
   include
   src
       main.cpp
   test
        module1
             main.cpp

test1/main.cpp can look like this…

void setup() {
   Serial.begin(115200);
};

void loop() {
  Serial.print("..");
  delay(2000);
};

My problem is that “Serial.print(”…")" is not showing up on the serial monitor.

Nobody that can help me on this, I am completly stuck.