Open Source Sex Machine
Buy PartsFlash Device
  • OSSM - Open Source Sex Machine
  • Frequently Asked Questions
  • CAD Project
    • MAIN
      • OSSM CAD Project Release Notes
  • Documentation
    • Board_Design
    • New Standard Servo Motor
    • Hazards
    • Safety and designing for the OSSM
  • Software
    • OSSM Project Documentation
      • PlatformIO
    • Include Directory
    • Libraries Directory
      • StrokeEngine
        • CHANGELOG
        • Pattern
        • Examples
    • Testing
  • Hardware
    • Mounting Options
      • Deprecated - Ball Head Mount
      • OSSM - Basic Mount
      • OSSM - Extrusion Mount
      • Shicks 4040 mount
        • Modified 4040 parts
    • Printing the parts!
      • Choose your method for attaching a toy to the OSSM
        • 24mm Threaded Option
    • PCB Files
      • OSSM Remote V2
    • Servo Tools
      • Gold Motor
  • Printed Parts
    • Actuator
    • Mounting
      • PitClamp Mini
        • ASSEMBLY_GUIDES
        • PitClamp Mini Bill Of Materials
        • UPDATES
    • OSSM - Remote
    • Stand
    • OSSM Mods
      • PitClamp Mini Reinforced 3030 Hinges
      • PitClamp Mini Reinforced Standard
Powered by GitBook
On this page
Edit on GitHub
  1. Software

Testing

  1. Create a new directory in the test directory with the name of your test

  2. Name the directory 'test_' and add a file called 'test_/main.cpp'

  3. Add the following code to the main.cpp file:

void test_example() {
    TEST_ASSERT_EQUAL(1, 1);
}

int runUnityTests() {
    UNITY_BEGIN();
    RUN_TEST(test_example);
    return UNITY_END();
}

int main(void) { return runUnityTests(); }
  1. Inside of the directory 'test_', you can create files which support your tests.

  2. You may also import files from '../../src' to use in your tests.

PreviousExamplesNextHardware

Last updated 6 months ago