TestHelper.hpp 781 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2021-09-26
  7. *
  8. * */
  9. #ifndef TEST_HELPER_HPP
  10. #define TEST_HELPER_HPP
  11. #include <string>
  12. #include <ls_std/ls_std.hpp>
  13. class TestHelper
  14. {
  15. public:
  16. TestHelper() = default;
  17. ~TestHelper() = default;
  18. static std::string getResourcesFolderLocation()
  19. {
  20. return TestHelper::getTestFolderLocation() + "resources" + ls_std::FilePathSeparator::get();
  21. }
  22. static std::string getTestFolderLocation()
  23. {
  24. ls_std::File buildDirectory{ls_std::File::getWorkingDirectory()};
  25. return buildDirectory.getParent() + "test" + ls_std::FilePathSeparator::get();
  26. }
  27. };
  28. #endif