Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Start looking at testing #233

Merged
merged 7 commits into from
Aug 15, 2016
Merged

Start looking at testing #233

merged 7 commits into from
Aug 15, 2016

Conversation

orta
Copy link
Contributor

@orta orta commented Aug 13, 2016

  • Danger
  • Travis
  • New Testing Framework
  • Typings improvements
  • Add a few more test cases
  • ESLint checker
  • Docs

OK, so, while this is still early days - we can start using Jest's Snapshot Testing. It looks a lot like what you were trying to do with mocha/shallow react-native.

IMO this solves a lot of the conceptual problems I was having around figuring out the testing structure. I'll miss real snapshots, but I'd trade the visual fidelity for cross-platform and extremely fast, readable JSON.

As a part of this, I studied how typings works. I now understand that it's a per-project thing, and you typically do typings install in a project to get all the auto-completion working. I have a bunch of staged typing file deletions which will be another second PR. Too much noise.

I've also got my JS Dangerfiles fork in, in theory we should get a hello world message from @ArtsyMobile.

Here's an example of what a completed test suite looks like: bartonhammond/snowflake#110

@orta orta force-pushed the testing branch 2 times, most recently from a6d91a2 to 549a4bc Compare August 13, 2016 23:04
@ArtsyOpenSource
Copy link

ArtsyOpenSource commented Aug 13, 2016

1 Message
📖 Hello, world.

Generated by 🚫 danger

@orta
Copy link
Contributor Author

orta commented Aug 14, 2016

I'm gonna wait on adding junit testing, looks like it's on Jest's TODO: jestjs/jest#104 (comment)

@orta
Copy link
Contributor Author

orta commented Aug 14, 2016

I had a thought that it might be nice to be able to run those snapshots as storybooks, might ask about it

@orta orta force-pushed the testing branch 3 times, most recently from 45f83db to 0f2eeb4 Compare August 15, 2016 17:07
@orta
Copy link
Contributor Author

orta commented Aug 15, 2016

Awesome, merging.

@orta orta merged commit 61df1db into master Aug 15, 2016
@orta orta deleted the testing branch August 15, 2016 17:21
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants