pureharm-rest-http4s-tapir


License

License

GroupId

GroupId

com.busymachines
ArtifactId

ArtifactId

pureharm-rest-http4s-tapir_2.13
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

pureharm-rest-http4s-tapir
pureharm-rest-http4s-tapir
Project URL

Project URL

https://github.com/busymachines/pureharm-testkit
Project Organization

Project Organization

BusyMachines
Source Code Management

Source Code Management

https://github.com/busymachines/pureharm-testkit

Download pureharm-rest-http4s-tapir_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.busymachines/pureharm-rest-http4s-tapir_2.13/ -->
<dependency>
    <groupId>com.busymachines</groupId>
    <artifactId>pureharm-rest-http4s-tapir_2.13</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.busymachines/pureharm-rest-http4s-tapir_2.13/
implementation 'com.busymachines:pureharm-rest-http4s-tapir_2.13:0.4.0'
// https://jarcasting.com/artifacts/com.busymachines/pureharm-rest-http4s-tapir_2.13/
implementation ("com.busymachines:pureharm-rest-http4s-tapir_2.13:0.4.0")
'com.busymachines:pureharm-rest-http4s-tapir_2.13:jar:0.4.0'
<dependency org="com.busymachines" name="pureharm-rest-http4s-tapir_2.13" rev="0.4.0">
  <artifact name="pureharm-rest-http4s-tapir_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.busymachines', module='pureharm-rest-http4s-tapir_2.13', version='0.4.0')
)
libraryDependencies += "com.busymachines" % "pureharm-rest-http4s-tapir_2.13" % "0.4.0"
[com.busymachines/pureharm-rest-http4s-tapir_2.13 "0.4.0"]

Dependencies

compile (19)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.5
org.http4s : http4s-dsl_2.13 jar 0.21.22
org.http4s : http4s-dsl_2.13 jar 0.21.22
org.http4s : http4s-circe_2.13 jar 0.21.22
org.http4s : http4s-circe_2.13 jar 0.21.22
com.busymachines : pureharm-core-anomaly_2.13 jar 0.2.0
com.busymachines : pureharm-core-anomaly_2.13 jar 0.2.0
com.busymachines : pureharm-core-sprout_2.13 jar 0.2.0
com.busymachines : pureharm-core-sprout_2.13 jar 0.2.0
com.busymachines : pureharm-effects-cats_2.13 jar 0.4.0
com.busymachines : pureharm-effects-cats_2.13 jar 0.4.0
com.busymachines : pureharm-json-circe_2.13 jar 0.2.0
com.busymachines : pureharm-json-circe_2.13 jar 0.2.0
com.softwaremill.sttp.tapir : tapir-core_2.13 jar 0.17.19
com.softwaremill.sttp.tapir : tapir-core_2.13 jar 0.17.19
com.softwaremill.sttp.tapir : tapir-json-circe_2.13 jar 0.17.19
com.softwaremill.sttp.tapir : tapir-json-circe_2.13 jar 0.17.19
com.softwaremill.sttp.tapir : tapir-http4s-server_2.13 jar 0.17.19
com.softwaremill.sttp.tapir : tapir-http4s-server_2.13 jar 0.17.19

Project Modules

There are no modules declared in this project.

pureharm-testkit

See changelog.

Scala versions

  • 2.13, JS + JVM
  • 3.0.0-RC1, JS + JVM
  • 3.0.0-RC2, JS + JVM

modules

usage

Follow the munit setup to add the appropriate test framework to your build.

testFrameworks += new TestFramework("munit.Framework")

Then, create your own "testkit" package. And use that everywhere.

package myapp

import busymachines.pureharm.testkit

package object test extends testkit.PureharmTestkitAliases

//-------- EOF --------

package myapp.test

/**
 * Add any custom assertions, flavors, styles, opiniated decisions
 * here, and continue using this.
 */
abstract class MyAppTest extends testkit.PureharmTestkit

//-------- EOF --------

package myapp.somemodule

import myapp.test._

final class MyTest extends MyAppTest {
  test("no resource")(IO.unit)

  private val myResource =
    ResourceFixture((to: TestOptions) => Resource.eval(testLogger.info(s"Making: $to") >> Timer[IO].sleep(10.millis)))

  myResource.test(TestOptions("with resource").tag(Slow))((_: Unit) => testLogger.info("Executing test w/ resource"))
}

Still under construction. See release notes and tests for examples.

Copyright and License

All code is available to you under the Apache 2.0 license, available at http://www.apache.org/licenses/LICENSE-2.0 and also in the LICENSE file.

com.busymachines

Busy Machines

Versions

Version
0.4.0
0.3.0
0.2.0
0.1.0
0.0.7
0.0.7-M3
0.0.7-M2
0.0.7-M1
0.0.6
0.0.6-RC1
0.0.6-M7
0.0.6-M6
0.0.6-M5
0.0.6-M4