You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experimenting FakeIt with CppUTest and the stand-alone single header for use in a training exercise. It works nicely and I had no problem getting it working with CppUTest, but the 10,000 line single header adds a second to test build on my linux box.
I have a cloud server I use with cyber-dojo as a training exercise server. This environment is shared by people doing training exercises. For simple test-runners that include fakeit.h, there is a 20-second build time on my dev server.
Is there are non-single header way of using FakeIt? You know, separating interface from implementation?
Thanks, James
The text was updated successfully, but these errors were encountered:
My assumption based on the amount of templating is that it needs to be header only.
I know windows Visual Studio allows precompiled headers so in effect it can be optimised to only compile it once, instead of for every source file with tests. Haven't tried it on linux/gcc etc, and not sure if this would help your scenario.
I've never really tested compilation time so I don't know how much impact the library has. I haven't looked into importing headers individually either, instead of importing the single-header only. Maybe it could help but I don't know if the includes are "clean" in the sense that they only include necessary headers themselves. I should probably look that one day.
Hi
I am experimenting FakeIt with CppUTest and the stand-alone single header for use in a training exercise. It works nicely and I had no problem getting it working with CppUTest, but the 10,000 line single header adds a second to test build on my linux box.
I have a cloud server I use with cyber-dojo as a training exercise server. This environment is shared by people doing training exercises. For simple test-runners that include fakeit.h, there is a 20-second build time on my dev server.
Is there are non-single header way of using FakeIt? You know, separating interface from implementation?
Thanks, James
The text was updated successfully, but these errors were encountered: