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

Decouple the adapter of Java compiler server with the logic of testing #160

Open
zhiyuanshi opened this issue Apr 4, 2015 · 0 comments
Open
Assignees

Comments

@zhiyuanshi
Copy link
Contributor

The code for make test2 (namely FileLoad.hs, FileIO.hs) prevents code re-use and evolve because it awkwardly entangles two aspects:

  • the part responsible for communicating with FileServer.java (the "service"), and
  • the part that does the actual testing, e.g., compare actual outputs against the expected ones

Migrating to the Tasty framework (Issue #32) requires extracting the first part out as a "service adapter" (will call it JavaCompileServerAdapter). The service adapter is a Haskell client of the actual service written in Java and it provides service to other Haskell code.

Requirements:

  1. The service adapter should just do one thing: compile a given Java source and returns the output; it shouldn't be aware of the other part of the code base, so that reuse is possible.
  2. All communication with the Java compilation service should be made through this service adapter, and the communication protocol should be available only to the two parties: service adapter and service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant