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

Add unit tests for Watcher and Master #9

Open
1 of 4 tasks
MateusDantas opened this issue Oct 26, 2016 · 0 comments
Open
1 of 4 tasks

Add unit tests for Watcher and Master #9

MateusDantas opened this issue Oct 26, 2016 · 0 comments

Comments

@MateusDantas
Copy link
Contributor

MateusDantas commented Oct 26, 2016

Creating interfaces for ProcPreparable, ProcContainer and file_util is essential to make unit testing easier. After that we can easily create mock instances and apply it on master and watcher. The tests should mainly test the following:

  • Starting processes serially
  • Starting processes in parallel
  • Killing processes serially
  • Killing processes in parallel
  • Killing keep-alive processes
  • Killing non-keep-alive processes
  • Trying to build non-compilable projects

The main idea is to test how APM behaves when facing possible race condition situations and how it handle errors.

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

1 participant