1. 19 Dec, 2016 1 commit
    • Dean Moldovan's avatar
      Make sure add_subdirectory and find_package behave identically · b0f3885c
      Dean Moldovan authored
      Add a BUILD_INTERFACE and a pybind11::pybind11 alias for the interface
      library to match the installed target.
      
      Add new cmake tests for add_subdirectory and consolidates the
      .cpp and .py files needed for the cmake build tests:
      
      Before:
      tests
      |-- test_installed_module
      |   |-- CMakeLists.txt
      |   |-- main.cpp
      |   \-- test.py
      \-- test_installed_target
          |-- CMakeLists.txt
          |-- main.cpp
          \-- test.py
      
      After:
      tests
      \-- test_cmake_build
          |-- installed_module/CMakeLists.txt
          |-- installed_target/CMakeLists.txt
          |-- subdirectory_module/CMakeLists.txt
          |-- subdirectory_target/CMakeLists.txt
          |-- main.cpp
          \-- test.py
      b0f3885c
  2. 13 Dec, 2016 1 commit
  3. 11 Nov, 2016 1 commit
  4. 06 Sep, 2016 1 commit
  5. 22 Aug, 2016 1 commit
    • Dean Moldovan's avatar
      Workaround for random failure of pytest capture on Windows · b6ccdc95
      Dean Moldovan authored
      pytest can capture test output both globally (controlled by the cmd line
      flag --capture) or locally (`capsys` and `capfd` fixtures). Enabling both
      methods at the same time causes problems on Windows: test output is not
      captured sometimes, resulting in test failure. This happens seemingly at
      random.
      
      This workaround disables global output capture ("-s", i.e. "--capture=no")
      leaving only the local capture fixtures. As a side-effect test output on
      AppVeyor CI is a little messy, but this will have to do until a better
      solution is found.
      b6ccdc95
  6. 19 Aug, 2016 1 commit
    • Dean Moldovan's avatar
      Port tests to pytest · a0c1ccf0
      Dean Moldovan authored
      Use simple asserts and pytest's powerful introspection to make testing
      simpler. This merges the old .py/.ref file pairs into simple .py files
      where the expected values are right next to the code being tested.
      
      This commit does not touch the C++ part of the code and replicates the
      Python tests exactly like the old .ref-file-based approach.
      a0c1ccf0
  7. 15 Aug, 2016 1 commit
  8. 30 Jul, 2016 1 commit
  9. 08 Jul, 2016 2 commits
  10. 02 Jun, 2016 1 commit
  11. 13 Dec, 2015 1 commit
  12. 23 Oct, 2015 1 commit
  13. 18 Oct, 2015 1 commit