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
- Host: GitHub
- URL: https://github.com/netbeast/react-native-diagnose
- Owner: netbeast
- License: mit
- Created: 2017-11-18T11:21:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T11:31:58.000Z (almost 7 years ago)
- Last Synced: 2024-04-28T06:19:33.524Z (over 1 year ago)
- Topics: diagnose, react, react-native, test, testing-framework
- Language: JavaScript
- Size: 313 KB
- Stars: 26
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-react-native - React Native Diagnose ★13 - A framework to test a React Native app during runtime and production (Frameworks / Other Platforms)
- awesome-react-native - React Native Diagnose ★13 - A framework to test a React Native app during runtime and production (Frameworks / Other Platforms)
- awesome-react-native - React Native Diagnose ★13 - A framework to test a React Native app during runtime and production (Frameworks / Other Platforms)
- awesome-react-native - React Native Diagnose ★13 - A framework to test a React Native app during runtime and production (Frameworks / Other Platforms)
- awesome-react-native - React Native Diagnose ★13 - A framework to test a React Native app during runtime and production (Frameworks / Other Platforms)
README
# react-native-diagnose

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')}} />
)
```

## 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.
> This package powers [Yeti Smart Home](https://getyeti.co) and is used in production.
Follow us in Github or https://twitter.com/netbeast_co.