Repository navigation
build: Add unit test target generation to cpp_library CMake util; Add tasks for building and running unit tests.
#26
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
37f1b51
Add helper function to build unittest
Bill-hbrhbr 76fe935
Add testing workflow and update related github workflows and readme docs
Bill-hbrhbr 78df602
Change unitTest to unit-test
Bill-hbrhbr 9012991
Redo the global unit test target and add library-specific unit tests
Bill-hbrhbr cc7d4b3
Update tasks that builds and runs unit tests.
Bill-hbrhbr 4238234
Update docs and github workflows
Bill-hbrhbr 48e406a
Rename the top-level unit test target name
Bill-hbrhbr 0f99b32
Apply suggestions from code review
Bill-hbrhbr 2465811
Rename TESTS to TESTS_SOURCES
Bill-hbrhbr 5d8ea8a
Allow task workflows to run on a list of targets specified by the CLI…
Bill-hbrhbr 7975d94
github workflow file fix
Bill-hbrhbr 7f961cc
Switch from CLI_ARGS to wildcard tasks.
davidlion e3ba7ce
Minor fixes
Bill-hbrhbr 48fb58a
flatten test tasks and set preconditions on valid ystdlib-cpp libs
Bill-hbrhbr 3f3951c
fix github workflow
Bill-hbrhbr 7cf1820
Move test tasks to top level and move preconditions to build
Bill-hbrhbr 625737b
Minor fix
Bill-hbrhbr 933e857
Update taskfile.yaml
Bill-hbrhbr 00c232e
Fix
Bill-hbrhbr c82855e
order fix
Bill-hbrhbr 2e8301b
Split out tasks
Bill-hbrhbr d2bd72b
Updated README
Bill-hbrhbr 61bc125
Remove the idea of libraries from unit test tasks
Bill-hbrhbr b309f4a
Apply suggestions from code review
Bill-hbrhbr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| cpp_library(NAME testlib NAMESPACE ystdlib) | ||
| cpp_library(NAME testlib NAMESPACE ystdlib TESTS_SOURCES test-hello.cpp) |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.