Skip to content

facebadge/sample.assay.it

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Example - Behavior as a Code suite

Learn about quality assessments of Serverless applications with https://assay.it. This example implements a minimal quality assessment suite using Behavior as a Code.

Inspiration

Quality assurance of serverless applications is more complex than doing it for other runtimes. Engineering teams spend twice as much time maintaining testing environments and mocks of cloud dependencies instead of building a loyal relationship with their customers, assay.it has you covered.

https://assay.it is a Software as a Service for developers to perform formal proofs of quality using type safe Behavior as a Code. It automates validation of cause-and-effect in loosely coupled topologies such as serverless applications, microservices and other systems that rely on interface syntaxes and its behaviors. It emphasizes deployment and quality assessment as a key feature along the development pipelines. Continuous proofs of the quality helps to eliminate defects at earlier phases of the feature lifecycle. It impacts on engineering teams philosophy and commitments, ensuring that your microservice(s) are always in a release-ready state.

Getting Started

  1. Sign up for assay.it with your GitHub developer account. Initially, the service requires only access to your public profile, public repositories and access to commit status of connected repositories. Later, you can enable quality assessments of private repositories.

  2. Fork assay-it/sample.assay.it to your own GitHub account and then add to the service workspace. The example implements a minimal quality assessment job using category pattern to connect cause-and-effect (Given/When/Then) with the networking concepts (Input/Process/Output). Just write pure functional code instead of clicking through UI or maintaining endless XML, YAML or JSON documents.

func TestOk() assay.Arrow {
  return http.Join(
    ø.GET("https://assay.it"),
    ƒ.Code(http.StatusOK),
    ƒ.Header("Content-Type").Is("text/html"),
  )
}
  1. Launch the quality assessment through the user interface. The service schedules the job and returns results of assessments in a few seconds. Here, a manual job trigger is used for ad-hoc and illustration purposes. assay.it supports integration with CI/CD so that continuous quality evaluation is a part of the development culture.

Let's have a look on the content of repository:

  • suite.go implements a minimal quality assessment contract of the service.
  • .assay.json configuration file, it declares what suites shall be executed.

Further Reading

Please continue to the core sections for details about Behavior as a Code development and see our advanced example on GitHub.

License

See LICENSE

About

minimal quality assessment suite for https://assay.it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%