8000 GitHub - eugkhp/weaver-test: A test framework that runs everything in parallel. · GitHub
[go: up one dir, main page]

Skip to content

About

A test framework that runs everything in parallel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

CI Latest version Discord Scala Steward badge

Weaver-test

A test-framework built on cats-effect and fs2

Installation

Weaver-test is currently published for Scala 2.12, 2.13, and 3

SBT (1.9.0+)

Refer yourself to the releases page to know the latest released version, and add the following to your build.sbt file.

libraryDependencies +=  "org.typelevel" %% "weaver-cats" % "@VERSION@" % Test
7CB0

For other build tools and older SBT versions, read the installation guide.

Documentation

Full documentation is available on the Weaver microsite.

Quick links

Motivation

Weaver was built for integration/end-to-end tests. It makes tests faster and easier to debug by using cats-effect IO.

time

  • Tests are run concurrently by default for quickest results possible.
  • Expectations (ie assertions) are composable values.
  • Failures are aggregated and reported at the end of the run
  • Logs are only displayed when a test fails. This works perfectly well with concurrent runs.
  • “beforeAll” and “afterAll” logic is represented using a cats.effect.Resource. This ensures that resources such as HTTP clients, connection pools and file handles are cleaned up correctly and predictably.

For more details, see why Weaver?

Contributing

Contributions are most welcome !

Building the website

If you're changing documentation, here's how you can check your changes locally:

sbt docs/tlSitePreview

Then navigate to http://localhost:4242 to see the documentation site.

Weaver uses sbt-typelevel-site, for more details on writing documentation see here.

PR Guidelines

Please:

  • Write positive and negative tests
  • Include documentation

Inspiration

A HUGE thank you to Alexandru Nedelcu, author of Monix and contributor to cats-effect, as he wrote the minitest framework which got this framework started.

About

A test framework that runs everything in parallel.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0