Giter VIP home page Giter VIP logo

sbt-cotest's Introduction

sbt-cotest

sbt plugin for running coordinated tests across projects.

Cotests are simply tests from multiple projects that run together as a single test. This provides multi-jvm tests with more flexibility for writing and configuring tests than possible with sbt-multi-jvm. For example, the parts of the test can have different scala versions and dependencies, and any test framework that sbt supports can be used.

Plugin

This plugin requires sbt 0.12 or 0.13.

Add the sbt-cotest plugin to project/plugins.sbt. For example:

addSbtPlugin("com.typesafe.sbt" % "sbt-cotest" % "0.1.0")

Configuration

Create an sbt project that serves as the aggregated test project, and separate sbt projects for the test parts.

Add the cotestSettings to the aggregated project, passing the projects containing the tests to be coordinated. For example:

lazy val cotests = project
  .settings(cotestSettings(a, b): _*)

lazy val a = project
  // settings ...

lazy val b = project
  // settings ...

Cotests

Tests that run together as a cotest need to have the same fully qualified name. The sbt-cotest plugin will collect tests with the same name from all the projects specified with cotestSettings. It's not required that a cotest has a corresponding part in each project. For example, one test could have five parts (tests with the same name) across projects, and another test only two parts.

To run tests there are cotest and cotestOnly tasks. The test and testOnly tasks are also overridden to point to these cotest variations.

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Before we can accept pull requests, you will need to agree to the Typesafe Contributor License Agreement online, using your GitHub account.

License

This code is open source software licensed under the [Apache 2.0 License] apache. Feel free to use it accordingly.

sbt-cotest's People

Contributors

pvlugter avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.