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

prepare refactoring: add testing in development workflow #41

Open
stweise opened this issue Feb 8, 2019 · 2 comments
Open

prepare refactoring: add testing in development workflow #41

stweise opened this issue Feb 8, 2019 · 2 comments

Comments

@stweise
Copy link
Collaborator

stweise commented Feb 8, 2019

I have had a little experience with googletest https://github.com/google/googletest and I would like to give it a try. First simple case I want to aim for is creating a new project with a few tasks in it. When I looked at the code it dawned on me that this will not be easy as user input from ncurses is required at a lot of places, in the same function.

Do you have any idea where to start from?

@gtaubman
Copy link
Owner

gtaubman commented Feb 9, 2019

From a quick glance it looks like the Project class can be easily tested without ncurses. That seems like a good place to start.

@stweise
Copy link
Collaborator Author

stweise commented Feb 12, 2019

I tried it an figured out that there is a dependency to task, which in turn has a dependency to the color defintions, which is again ncurses.

Since I am still trying to figure out a good way to first introduce the tooling, I prepared a branch called gtest, which mostly includes the tooling and a dummy project class. Please have a look at it.

setup: doneyet source folder is checked out next to a checked out repository of: https://github.com/google/googletest on my machine it looks like this:

    ~/git/doneyet
    ~/git/googletest

invocation:

make -f Makefile_test
./dummy_unittest

Let me know what you think.

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