Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An integration test framework for React Native.

License

NotificationsYou must be signed in to change notification settings

pixielabs/cavy

Repository files navigation

Cavy logo

Cavy

npm versionCircleCI

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

Cavy tests allow you to programmatically interact with deeply nested componentswithin your application. Write your tests in pure JavaScript and run them onboth Android and iOS.

Cavy tests look like this:

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

📋 Requirements

  • React Native >= 0.59
  • React >= 16.8.0

👶 Getting started

Get set up with Cavy by following ourinstallation guide.

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

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

📘 Documentation

Full documentation and guides for Cavy can be found on ourwebsite.

🗺️ Development roadmap

Take a look at our publicPivotal Tracker to see whatwe'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 theCavyTester app running indevelopment for regression testing.

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

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

Before contributing, please read thecode of conduct.

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

[8]ページ先頭

©2009-2025 Movatter.jp