-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test.cpp header issue #1
Comments
I'm gonna submit a pull request. Just fixed it and thought it would be nice to learn github a bit more. |
So changing the header fixes the default tests, but in my test code: main.cpp:
test.cpp:
Then I get a ton of errors such as these below:
|
@LunaVoid , can you list what commands you used to compile? I recently updated the README with the commands for method 3. |
@kapooramanpreet test.cpp by default points to the catch header pulled in through CMake's git integration. Instructions for changing this to use the local amalgamated headers are included in method 3. Changing the CMake project to use the local catch amalgamated would require significant change to the project structure and template; the catch_amalgamated files are provided more as a convenience for students who wish to forego the editor integration and just test from the command line with Method 3. I have a rough proof of concept for using a local catch with CMake, but it would require more R&D to have it reach feature parity with the current template setup. Is this something you'd want to see developed further? |
Also @LunaVoid, if you change the header like that you can't use the existing CMakeLists.txt's setup for editor integration. Please see Method 3 in the readme if you'd like to use commandline-only testing instead with the local catch files, but for the main template I won't be able to merge your PR without other changes to the project structure. |
The test.cpp has a header which doesn't point to the amalgamated file. This should be fixed.
The text was updated successfully, but these errors were encountered: