title: Travis Platformio, not running test_main.cpp
body: <p>I managed to get Travis and PlatformIO working together. The sourcecode is build and check by Travis, but I can't find my results of the test in test_main.cpp. When I change the sourcecode that a test has to fail, Travis also returns a succes. How can I solve my issue that Travis checks for the tests in test_main.cpp and not only if it build (I guess that it is doing that right now)</p>
  
  <p>Test_main.cpp</p>
  
  <pre><code>#include &lt;Arduino.h&gt;
  #include &lt;unity.h&gt;
  
  #define LED_BUILTIN 13
  
  void setUp(void) {
  // set stuff up here
  }
  
  void tearDown(void) {
  // clean stuff up here
  }
  
  void test_led_builtin_pin_number(void) {
      TEST_ASSERT_EQUAL(13, LED_BUILTIN);
  }
  
  void test_led_state_high(void) {
      digitalWrite(LED_BUILTIN, HIGH);
      TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
  }
  
  void test_led_state_low(void) {
      digitalWrite(LED_BUILTIN, LOW);
      TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
  }
  
  void setup() {
      // NOTE!!! Wait for &gt;2 secs
      // if board doesn't support software reset via Serial.DTR/RTS
      delay(2000);
  
      UNITY_BEGIN();    // IMPORTANT LINE!
      RUN_TEST(test_led_builtin_pin_number);
  
      pinMode(LED_BUILTIN, OUTPUT);
  }
  
  uint8_t i = 0;
  uint8_t max_blinks = 5;
  
  void loop() {
      if (i &lt; max_blinks)
      {
          RUN_TEST(test_led_state_high);
          delay(500);
          RUN_TEST(test_led_state_low);
          delay(500);
          i++;
      }
      else if (i == max_blinks) {
        UNITY_END(); // stop unit testing
      }
  }
  </code></pre>
  
  <p>.Travis.yml</p>
  
  <pre><code>language: python
  python:
      - "2.7"
  
  sudo: false
  cache:
      directories:
          - "~/.platformio"
  
  install:
       - pip install -U platformio
       - platformio lib -g install https://github.com/ThrowTheSwitch/Unity.git
  
  env:
      - PLATFORMIO_CI_SRC=test/test_main.cpp
  
  script:
      # - platformio ci --project-conf=platformio.ini
      - platformio ci --lib="." --board=esp32dev
  </code></pre>
  
  <p>Platformio.ini</p>
  
  <pre><code>; PlatformIO Project Configuration File
  ;
  ;   Build options: build flags, source filter
  ;   Upload options: custom upload port, speed and extra flags
  ;   Library options: dependencies, extra library storages
  ;   Advanced options: extra scripting
  ;
  ; Please visit documentation for the other options and examples
  ; https://docs.platformio.org/page/projectconf.html
  
  [env:MainBoard]
  platform = espressif32
  board = esp32dev
  framework = arduino
  </code></pre>
  
  <p>Last part of the travis result</p>
  
  <pre><code>Compiling .pioenvs/esp32dev/FrameworkArduino/esp32-hal-spi.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/esp32-hal-time.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/esp32-hal-timer.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/esp32-hal-touch.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/esp32-hal-uart.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/libb64/cdecode.c.o
  Archiving .pioenvs/esp32dev/libe4e/libUnity.a
  Compiling .pioenvs/esp32dev/FrameworkArduino/libb64/cencode.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/main.cpp.o
  Indexing .pioenvs/esp32dev/libe4e/libUnity.a
  Compiling .pioenvs/esp32dev/FrameworkArduino/stdlib_noniso.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/wiring_pulse.c.o
  Compiling .pioenvs/esp32dev/FrameworkArduino/wiring_shift.c.o
  Archiving .pioenvs/esp32dev/libFrameworkArduino.a
  Indexing .pioenvs/esp32dev/libFrameworkArduino.a
  Linking .pioenvs/esp32dev/firmware.elf
  Building .pioenvs/esp32dev/firmware.bin
  Retrieving maximum program size .pioenvs/esp32dev/firmware.elf
  Checking size .pioenvs/esp32dev/firmware.elf
  Memory Usage -&gt; 
  DATA:    [          ]   4.3% (used 14008 bytes from 327680 bytes)
  PROGRAM: [=         ]  13.9% (used 182772 bytes from 1310720 bytes)
  ========================= [SUCCESS] Took 5.53 seconds =========================
  The command "platformio ci --lib="." --board=esp32dev" exited with 0.
  cache.2
  store build cache
  0.00s
  1.65snothing changed, not updating cache
  Done. Your build exited with 0.
  </code></pre>