ios-snapshot-test-case
screenshot-tests-for-android
ios-snapshot-test-case | screenshot-tests-for-android | |
---|---|---|
2 | 5 | |
2,683 | 1,734 | |
- | 0.1% | |
0.0 | 4.3 | |
about 6 years ago | about 1 month ago | |
Objective-C | Java | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ios-snapshot-test-case
-
iOSSnapshotTestCase or SnapshotTesting?
iOSSnapshotTestCase (previously FBSnapshotTestCase) mainly written in objective C or pointfreeco/swift-snapshot-testing in Swift. What is your opinion in 2022?
-
Is anyone using TDD on a significant Android app? Any tips?
iOS: https://github.com/facebookarchive/ios-snapshot-test-case
screenshot-tests-for-android
-
Ask HN: What tools do you use at work to keep your images up to date?
You might be able to use an integration test framework to generate screenshots automatically based on a series of steps that walk through the user journey.
For web: https://docs.cypress.io/guides/guides/screenshots-and-videos
For Android: https://facebook.github.io/screenshot-tests-for-android/
-
Is anyone using TDD on a significant Android app? Any tips?
Android: https://github.com/facebook/screenshot-tests-for-android
-
Adopting test driven development, CI/CD to native android development
Don't write assertions on views, it's way too brittle. Use Screenshot testing (it's also incredibly useful to use screenshot testing as part of TDD, write tests to generate screenshots, make changes, check screenshots). I'm the original author of https://github.com/facebook/screenshot-tests-for-android, so I'm biased. Also did a talk about this at Droidcon NYC a few years ago if you're interested: https://www.youtube.com/watch?v=No6iZIbh59Q
-
Android Library: Create an image/screenshot of any View or Bitamp in JPG, PNG or .nomedia formats with oneliner code. Save yourself the trouble!
If you want to do something similar in automated tests, I'd suggest https://github.com/facebook/screenshot-tests-for-android. It handles a few extra things that are useful for automation, but it's probably not that complicated to build into QuickShot.
-
Jetpack Compose Screenshot Testing With Shot
Also take a look at screenshotbot.io, I'm the original author of screenshot-tests-for-android, which Karumi Shot uses under the hood. Screenshotbot will record your screenshots on the cloud instead of your repository. This reduces the overhead of screenshot tests on your coworkers, they don't need to understand screenshot tests in order to reap the benefits. It's how we did it at Facebook, I described this in my Droidcon talk.
What are some alternatives?
SnapshotTesting - 📸 Delightful Swift snapshot testing.
Buck - A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
Buildasaur - Automatic testing of your Pull Requests on GitHub and BitBucket using Xcode Server. Keep your team productive and safe. Get up and running in minutes. @buildasaur
QuickShot - [Moved to MavenCentral] Capture images of any View, SurfaceView or Bitmap from your Android app in: .jpg .png or .nomedia with simple oneliner codes.
DVR - Network testing for Swift
NaughtyKeyboard - The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data. This is a keyboard to help you test your app from your iOS device.
iOS Snapshot Test Case - Snapshot view unit tests for iOS
Kakapo - 🐤Dynamically Mock server behaviors and responses in Swift
AcceptanceMark - Tool for generating Acceptance Tests in Xcode, inspired by Fitnesse
second_curtain - Upload failing iOS snapshot tests cases to S3
Cribble - Swifty tool for visual testing iPhone and iPad apps. Every pixel counts.
MirrorDiffKit - Graduation from messy XCTAssertEqual messages.