• Stars
    star
    1,369
  • Rank 34,342 (Top 0.7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An integration test framework for React Native.

Cavy logo

Cavy

npm version CircleCI

Cavy is a cross-platform, integration test framework for React Native, by Pixie Labs.

Cavy tests allow you to programmatically interact with deeply nested components within your application. Write your tests in pure JavaScript and run them on both Android and iOS.

Cavy tests look like this:

export default function(spec) {
  spec.describe('A list of the employees', function() {
    spec.it('can be filtered by search input', async function() {
      await spec.exists('EmployeeList.JimCavy');
      await spec.fillIn('SearchBar.TextInput', 'Amy');
      await spec.press('Button.FilterSubmit');
      await spec.notExists('EmployeeList.JimCavy');
      await spec.exists('EmployeeList.AmyTaylor');
    });
  });
}

πŸ“‹ Requirements

  • React Native >= 0.59
  • React >= 16.8.0

πŸ‘Ά Getting started

Get set up with Cavy by following our installation guide.

You might also want to check out some articles and watch talks about Cavy to find out a bit more before you write code.

If you need some inspiration, head over to Cavy's sample app, follow the instructions in the README, and see Cavy in action.

πŸ“˜ Documentation

Full documentation and guides for Cavy can be found on our website.

πŸ—ΊοΈ Development roadmap

Take a look at our public Pivotal Tracker to see what we're currently working on, and what features we plan to add to Cavy next.

πŸ’― Contributing

When making changes to Cavy, it's useful to have the CavyTester app running in development for regression testing.

Follow the instructions it's own README on how to get the tester app running against a local version of the Cavy library.

Here you'll also find instructions on adding new test cases to ensure your functionality is fully tested. Please do this :)

Before contributing, please read the code of conduct.

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Remember to submit a PR to DefinitelyTyped to update the type definitions if you've changed a function's inputs or outputs.
  • Remember to submit a PR to update the documentation if you've changed how something works.
  • Please try not to mess with the package.json, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so we can cherry-pick around it.

More Repositories

1

letsencrypt-rails-heroku

Automatic LetsEncrypt SSL certificates in your Rails app on Heroku.
Ruby
220
star
2

cavy-cli

Command line interface for Cavy
JavaScript
22
star
3

directus-extension-blurhash

A Directus extension that generates blurhashes for uploaded images.
TypeScript
19
star
4

activestorage-example-app

An example Ruby on Rails app using Active Storage for file storage (locally or in S3)
Ruby
11
star
5

balrog

A lightweight authorization library for Ruby on Rails that protects your routes with a simple password form.
Ruby
9
star
6

whisper-key

Send & receive secure messages in the browser.
Ruby
7
star
7

cavy-native-reporter

A native test reporter for Cavy
Java
6
star
8

jsecrets

jsecrets is a wrapper around AWS Secrets Manager for your JavaScript projects.
JavaScript
6
star
9

particle-react-native-bridge-example

An example of integrating the Particle Device Setup iOS SDK with React Native
Objective-C
4
star
10

cavy-mobx-example

An example app using Cavy, MobX and React Native
Objective-C
4
star
11

directus-extension-force-ssl

An extension for Directus that adds some middleware in production to force SSL (detection using headers from Heroku)
TypeScript
3
star
12

balrog-auth

A lightweight authorization library for Express that protects your routes with a simple password form.
HTML
3
star
13

scan-suppressing-logger

Suppress Rails logs and exceptions from automated scan requests.
Ruby
2
star
14

cavy-sample-app

A sample application that uses Cavy
JavaScript
2
star
15

particle-setup-react-native-example

Example React Native app that can configure a Particle Photon Wifi via the SoftAP API
JavaScript
2
star
16

cavy-tester

The React Native app we use to test and develop Cavy
JavaScript
1
star
17

devise-recognisable

Risk-based auth for Devise.
Ruby
1
star