Skip to content

Commit

Permalink
Updated headers
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed May 17, 2020
1 parent a87e037 commit 7c3a658
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 7 deletions.
Binary file modified doc/images/128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/200x200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/48x48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/images/github.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 24 additions & 2 deletions readme.md
Expand Up @@ -2,8 +2,6 @@

<img src="/doc/images/github.png" valign="middle">

![CI](https://github.com/propensive/probably/workflows/CI/badge.svg)

# Probably

__Probably__ is a testing library designed to unintrusively provide test recording and reporting capabilities to any codebase, regardless of the users&rsquo; choices of libraries or programming paradigms. __Probably__ can define and run unit tests and property tests. Its syntax is simple and unexciting, and its execution model has zero magic: it&rsquo;s the same as for any other program.
Expand Down Expand Up @@ -130,6 +128,7 @@ For a given `Seed`, the pseudorandom data generated will always be deterministic

_Probably_ comes with a simple CLI runner for running tests through the standard shell interface.

### Skipping tests

### Test Expression

Expand All @@ -151,6 +150,29 @@ This confers a few further differences with assertion tests:
- exceptions thrown inside the body are not caught (but are recorded); exceptions in the check are still caught
- test expressions cannot be skipped; their return value is necessary for execution to continue

### Test Suites

A test suite is a convenient grouping of related tests, and can be launched from a runner (the value `test` in
the following example) like so:
```scala
test.suite("integration tests") { test =>
test("end-to-end process") {
System.process()
}.assert(_.isSuccess)
}
```

Like other tests, a suite has a name, and will be executed at the point it is defined, and like other tests, it
will pass or fail (or, produce mixed results). Its body, however, is a lambda which introduces a new `Runner`
instance which will be used to run the tests in the suite. By convention, the new `Runner` is also named `test`.
This will shadow the outer one, which is usually the desired behavior.

When the test suite completes, its results are aggregated into the report of the runner which spawned it. If you
launched it using the CLI, the table of results will show the nested tests indented.

The `Runner` introduced by the `suite` method is the same as any other `Runner`, so further test suites can be
defined inside other test suites, making it possible to organise tests into a hierarchy.


## Status

Expand Down
2 changes: 1 addition & 1 deletion src/cli/cli.scala
@@ -1,6 +1,6 @@
/*
Probably, version 0.1.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
Probably, version 0.3.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
The primary distribution site is: https://propensive.com/
Expand Down
2 changes: 1 addition & 1 deletion src/core/probably.scala
@@ -1,6 +1,6 @@
/*
Probably, version 0.1.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
Probably, version 0.3.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
The primary distribution site is: https://propensive.com/
Expand Down
2 changes: 1 addition & 1 deletion src/property/property.scala
@@ -1,6 +1,6 @@
/*
Probably, version 0.1.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
Probably, version 0.3.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
The primary distribution site is: https://propensive.com/
Expand Down
2 changes: 1 addition & 1 deletion src/test/tests.scala
@@ -1,6 +1,6 @@
/*
Probably, version 0.1.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
Probably, version 0.3.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
The primary distribution site is: https://propensive.com/
Expand Down
2 changes: 1 addition & 1 deletion src/web/web.scala
@@ -1,6 +1,6 @@
/*
Probably, version 0.1.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
Probably, version 0.3.0. Copyright 2017-20 Jon Pretty, Propensive OÜ.
The primary distribution site is: https://propensive.com/
Expand Down

0 comments on commit 7c3a658

Please sign in to comment.