UNPKG

@reason-native/cli

Version:

[![Build Status](https://dev.azure.com/reason-native/reason-native/_apis/build/status/facebookexperimental.reason-native?branchName=master)](https://dev.azure.com/reason-native/reason-native/_build/latest?definitionId=1?branchName=master) ![Supported Plat

152 lines (130 loc) 6.22 kB
# February 18, 2020 ### Rely 3.2.0 * Better command line interface (documentation of available options is now available along with several aliases) * Ability to filter which tests are run from the command line using `--filter` or `-f` * Bugfix for the injection of time for non-native compilation targets # January 15, 2020 ### Pastel 0.3.0 * Add `Pastel.make` to provide better support for those not using the JSX PPX (e.g. OCaml) # December 20, 2019 ### Pastel 0.2.3 * bugfix for input "<like>" "<this>" in human readable mode # July 23, 2019 ### Rely 3.1.0 * Add matchers for ensuring that a particular number of assertions have run (useful for testing assertions inside of callbacks) - expect.assertions(int) verifies a specific number of (non expect.assertions/hasAssertions) assertions have been called - expect.hasAssertions matchers verifies at least one (non expect.assertions/hasAssertions) assertion has been called # July 2, 2019 ### Rely 3.0.0 * Added functions for performing setup and teardown operations - beforeAll, afterAll, beforeEach, afterEach - documentation available [here](https://reason-native.com/docs/rely/setup-teardown) * [**Breaking**] as a result of adding test lifecycle functions, an "env" field was added to the record passed as an argument to tests and some types gained an additional parameter. **Most users should be able to upgrade without code changes**, but utilities with manual type annotations on the test, describe, or expect types from Rely will need to be updated. Additionally warning 9 errors may be generated from the test record if those are not supressed. - The previous pattern for registering custom matchers has been deprecated, it still works as of this release, but may eventually be removed entirely * Add a --onlyPrintDetailsForFailedSuites command line flag for only printing failed output # May 29, 2019 ### Rely 2.2.0 * expect.mock.nthCalledWith/nthReturnedWith matchers * expect.result matchers for the built in result type * various internal changes to support compilation to JS with Js_of_ocaml * it works! * better failure messages when unable to create a snapshot directory # May 2, 2019 ### qcheck-rely 1.0.2 * depend on @opam/qcheck-core instead of @opam/qcheck to drastically reduce dependencies pulled in # May 1, 2019 ### qcheck-rely 1.0.1 * Remove confusing matcher hint from qcheck rely output # April 30, 2019 ### qcheck-rely 1.0.0 * Initial release, see the README in the src/qcheck-rely directory for usage # April 26, 2019 ### Rely 2.1.0 * describeOnly, testOnly * if there is a describeOnly or testOnly present anywhere in the set of tests to be run, only tests inside of a testOnly or describeOnly will be run. skip takes precedence over only (e.g. a testOnly inside a describeSkip will be skipped) * this is only intended for use in local development as a single only disables every other test * ciMode * the ciMode option has been added to runConfig, when run with ciMode(true) or in CLI mode with the --ci flag ci mode will be enabled. Currently this causes Rely to throw an exception if there any testOnly or describeOnly. To skip tests in CI use testSkip/describeSkip * expect.option matchers * toBeNone, toBeSome, toBe matchers # April 15, 2019 ### Rely 2.0.0 * [**BREAKING**] Add optional locations to Passed and Skipped test status variant constructors for reporters * [**BREAKING**] TestFramework.extendDescribe now returns a record instead of a describe function * changing ```let describe = extendDescribe(...)``` to ```let {describe} = extendDescribe``` should be sufficient for users of this feature * needed for future implementation of describeOnly/testOnly * Allow combining of test libraries via Rely.combine and TestFramework.toLibrary * Fix bug where skipping snapshot tests would cause snapshots to be deleted * Improve printing of exceptions with multiple lines of text # March 19, 2019 ### Rely 1.3.1 * Fix bug where expect.string.toMatch would only check matches beginning on first character, changed to match behavior of Jest and also switched internal implementation from str to re # March 18, 2019 ### Rely 1.3.0 * jUnit reporter * throw error when nesting top level TestFramework.describe # March 5, 2019 ### Pastel 0.2.1 * Fix bug with windows powershell support ### Console 0.1.0 * Console.Pipe feature ``` foo |> List.map(mapper) |> Console.Pipe.log |> Array.of_list ``` # February 25, 2019 ### file-context-printer 0.0.3 * Shorten paths for windows relocatable build support # February 19, 2019 ### Pastel 0.2.0 * Windows powershell support for colors * Infer default mode to account for non-tty terminals and the FORCE_COLOR environment variable ### Rely 1.2.0 * Mock functions * Created via Mock.mock3(implementation) * new mock matchers * expect.mock(myMock).toBeCalled() * describeSkip * Polymorphic equality matchers (great for record comparison) * overwriteable equality (structural by default) expect.equal(~equals=?, thing1, thing2) * referential equality expect.same(thing1, thing2) * Better default output in non-tty environment * Public reporters API * Expose onTestSuiteStart, onTestSuiteEnd, onRunStart, onRunComplete test lifecycle methods * Allow registering custom reporters * Update default reporter to include timing data # January 29, 2019 ### Rely 1.1.0 * Collection matchers * expect.list * expect.array * testSkip * new field added to the record passed to the function passed to describe * this may cause additional warning 9's * skipped tests are not run ### Pastel 0.1.0 * Added support for modes * Terminal * previous behavior * HumanReadable * (```<Pastel color=red>"HelloWorld"</Pastel> => "<red>HelloWorld</red>"```) * Disabled * (```<Pastel color=red>"HelloWorld"</Pastel> => "HelloWorld"```) * Pastel.getMode * Pastel.setMode * Pastel.useMode(mode, thunk) * saves the current mode, sets the mode to the desired mode, executes the thunk, restores the saved mode * Pastel.Make * functor to allow sandboxing of Pastel instances now that mode is a "global" setting # 0.0.1 (November, 2018) ### Initial Release * Initial code release. See documentation for usage.