Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Unit tests #2

Open
4 tasks done
FiniteReality opened this issue Nov 3, 2016 · 2 comments
Open
4 tasks done

Unit tests #2

FiniteReality opened this issue Nov 3, 2016 · 2 comments

Comments

@FiniteReality
Copy link
Owner

FiniteReality commented Nov 3, 2016

Unit tests are needed to ensure the code I'm writing actually works. This involves adding some stuff to the CMakeLists to allow building of unit tests.

  • Add unit test support to CMakeLists
  • Use Travis CI to build disccord
  • Use Travis CI to run tests
  • Write preliminary unit tests
@unleashy
Copy link
Contributor

unleashy commented Nov 3, 2016

I like Catch, what do you think?

@FiniteReality
Copy link
Owner Author

At this point the basic framework for unit testing has been written, so what we need now is complete unit tests for things which aren't currently tested or are not tested fully.

FiniteReality added a commit that referenced this issue Feb 12, 2017
Semaphores aren't based on the CoreCLR anymore; that was left over
from when I was screwing about trying to get things to work.

Now we can decode JSON using the static methods of entity<T> classes,
and in the future typechecking will be put in to ensure valid json is
passed to these types (right now it will throw a json exception, we
should add custom exception types to make errors easier to debug.

TODO from this point onwards:
- Implement REST API methods in api_client.cpp (see #5)
- Remove `disccord_` prefix from client types
- Add entity types for all discord entities
- Implement websocket API (see #6)
- Implement entity cache
- Clean up includes
- Include a test script (?)
- Expand test range (see #2)
- Write documentation (see #7 for more info)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants