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

Feature add gtest #70

Merged
merged 5 commits into from
Oct 26, 2017
Merged

Feature add gtest #70

merged 5 commits into from
Oct 26, 2017

Conversation

dschlaep
Copy link
Member

Unit testing framework

Remaining work

- new targets 'gtest' and 'gtest_clean'
- updated target 'cleaner' to include what 'gtest_clean' does

- very simple test case 'test/sw_test.cc'
- Added main() to sw_test.cc
- added 'sw_test' executable to .gitignore

```
make gtest
./sw_test
```

> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from IsTestTest
> [ RUN      ] IsTestTest.Failure
> [       OK ] IsTestTest.Failure (0 ms)
> [----------] 1 test from IsTestTest (0 ms total)
>
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (0 ms total)
> [  PASSED  ] 1 test.
@dschlaep
Copy link
Member Author

@kpalmqui could you please make sure that the changes made on this branch do not interfere with STEPWAT2? I don't believe that they would affect STEPWAT2 because all changes are restricted to subfolders 'doc/', 'test/', and 'googletest/' and their new make targets which are only activated through their own separate functionality. I just wanted to be sure that none of this causes any unwanted trouble, before I merge into master. Thanks!

@dschlaep dschlaep merged commit 118f3a5 into master Oct 26, 2017
@dschlaep dschlaep deleted the feature_add_gtest branch October 26, 2017 21:36
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

Successfully merging this pull request may close these issues.

Set up GoogleTest as testing framework
1 participant