- Swap to
npx react-native
instead of justreact-native
, which is no longer recommended.
-
Remove redundant details element in XML formatter - thanks TheAlmightyBob for tidying this up.
-
Use Node's
renameSync
rather thanmv
to swap entry point files, fixing issue on Windows.
- Change Cavy's exit code when a test fails from 1 to 42. As 1, it was difficult to distinguish between a test failure and a build failure (which would also exit with code 1).
BREAKING If you're upgrading to cavy-cli 2.0, you will need to upgrade to Cavy 4.0 to continue to run your tests with the following new features:
-
Wait for a configurable length of time to receive a websocket connection from cavy and exit with an error code if no connection is made. cavy-cli won't hang indefinitely if your app fails to build and tests never run. Configure the timeout length with the new
--boot-timeout
option. -
Print test results in real-time.
- New
--xml
option, which writes out JUnit compatible test results to cavy_results.xml.
- Help text tweaks for options.
- New options
--skipbuild
and--dev
for running cavy tests without first building the app and keeping the report server alive between test runs, respectively. Thanks to TheAlmightyBob for these new features!
- Fix bug whereby a test entry file was always renamed to
index.js
rather than the custom entry file specified with--file
option. Thanks TheAlmightyBob for spotting and fixing this!
- Fix issue with spawning React Native on Windows.
- Removed deprecated prop from
index.test.js
template - Fixed example spec description
- New
--file
option for commandscavy run-ios
andcavy run-android
for users with non-standard app entry files.
- Added a new route to the internal web server so that Cavy can detect if
cavy-cli is running. This is part of the work we are doing to remove the need
for the
sendReport
prop (pixielabs/cavy#125).
- New command
cavy init
, which adds example spec and index.test.js file to React Native apps.
- Use an index.test.js entry file if it's available.
- README update, fix reported version number.
- Remove
--harmony
.
- Initial prototype release. With thanks to @TGPSKI for his work on a fork of Cavy that tackles reporting and CI, which was inspiration for cavy-cli.