An open API service indexing awesome lists of open source software.

https://github.com/netbeast/react-native-diagnose

A framework to test a React Native app during runtime
https://github.com/netbeast/react-native-diagnose

diagnose react react-native test testing-framework

Last synced: 6 months ago
JSON representation

A framework to test a React Native app during runtime

Awesome Lists containing this project

README

          

# react-native-diagnose
![npm version](https://badge.fury.io/js/react-native-diagnose.svg)

A react runtime diagnose component

## Rationale
* Testing native applications is complicated
* There are features that can only be tested on a device, unless mocked
* You may want to test your app on a production build, before submit it to the stores

```javascript
import { Diagnose, Test } from 'react-diagnose'

/**
* Diagnose will run all test components inside
* Test components are going to be marked visually as completed or not
* to d
*/
return (


{
return new Promise(() => setTimeout(() => {}, 1000000))
}} />
{throw new Error('Failing test')}} />


)
```

demo screenshot

## Help wanted
- [ ] Elapsed time
- [ ] Before all
- [ ] Before each
- [ ] After each
- [ ] After all

More documentation is incoming, in the meanwhile please read the source code. It is a single file!
PRs and issues are more than welcome.


works with yeti

> This package powers [Yeti Smart Home](https://getyeti.co) and is used in production.

Follow us in Github or https://twitter.com/netbeast_co.