Skip to content
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

How do I use? #2

Open
vitiral opened this issue Nov 10, 2022 · 2 comments
Open

How do I use? #2

vitiral opened this issue Nov 10, 2022 · 2 comments

Comments

@vitiral
Copy link

vitiral commented Nov 10, 2022

I like the concept, but I couldn't see a simple example of how to use with a Makefile. I include simpletest as a library, write my tests and then... what? Call something in my main() and have a command line argument which executes it?

@vitiral
Copy link
Author

vitiral commented Nov 10, 2022

The large simpletest_test repsoitory, which doesn't have a Makefile, didn't help me much either.

Sorry if the question is daft, I'm just learning C++.

@kudaba
Copy link
Owner

kudaba commented Aug 16, 2024

A couple years down the line and I only just noticed that I have an issue in here, I'm terribly sorry I had no idea anyone even found this!

In my use cases I've been building projects using Sharpmake as a project file generation tool so I only have to write the rules once and have it working on all platforms. In simpletest_test project you can clone it, run the shell scripts and off you go. Being just a single .h/.cpp it's designed to integrate easily into existing systems and not really provide off the shelf functionality. I have another repo that makes use of it here and it's the same things, sharpmake to generate the projects, and it's own main() to run the functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants