Skip to content

Provide clean process and test code as examples #3

@huard

Description

@huard

What I want to do here is propose a few good practices that experience has shown work well. Now I personally don't have that much experience, so I'm not in such a good position to do this...

Here are things that I think matter when we write processes:

  • make processes easy to use to define other similar processes (inheritance)
  • metadata is being used to construct the documentation, as well as the user interface. It needs to be complete, and be uniform so its useful to UI developers.
  • make sure that all processes log roughly the same information to facilitate debugging.
  • use adequate mime-types to facilitate UI interfacing

Then what do we test exactly? I think WPS processes should remain simple. The complexity should be in stand-alone functions that can be tested independently from the WPS context.

Comments, suggestions ?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions