https://github.com/terales/gemini-mvp-setup
[RESEARCH] Proof of concept minimum working setup of the Gemini, utility for regression testing of web pages using screenshots
https://github.com/terales/gemini-mvp-setup
css-testing end-to-end-testing gemini proof-of-concept screenshots-comparison selenium-webdriver
Last synced: about 2 months ago
JSON representation
[RESEARCH] Proof of concept minimum working setup of the Gemini, utility for regression testing of web pages using screenshots
- Host: GitHub
- URL: https://github.com/terales/gemini-mvp-setup
- Owner: terales
- License: mit
- Created: 2017-04-08T13:29:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T13:04:39.000Z (almost 8 years ago)
- Last Synced: 2025-01-17T16:37:25.590Z (4 months ago)
- Topics: css-testing, end-to-end-testing, gemini, proof-of-concept, screenshots-comparison, selenium-webdriver
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## This is a [research code](https://meiert.com/en/blog/20140716/research-and-production/).
Gemini is looking good for me as a test runner for checking CSS regressions.
I've created minimum setup example to check if it fits into my workflow and to get some taste of using it.
### Run Gemini with a single command
Right now you need to call `selenium-standalone start` and `gemini test` in different terminals. I don't like that behavior, so I've tried to use their programmatic APIs. See example in [gemini-runner.js](gemini-runner.js).### Use Gemini in the docker container for CI
This task is achievable with Gemini's flat reporter, running Gemini with a single command and [running browsers headlessly](https://github.com/vvo/selenium-standalone#running-headlessly).### How Gemini fits into current project folder structure?
You need to change paths in several places:
* in npm scripts: `gemini test ./__DESIRED_PATH_HERE__ --…`,
* in config's `screenshotsDir` parameter,
* in `gemini-runner.js` at running tests: `gemini.test('./__DESIRED_PATH_HERE__', { reporters: ['flat'] })`.- - -
After some tweaking I saw that Gemini is very comprehensive and configurable utility. Going to use in current projects.
Another project to check Gemini in use: https://github.com/mshatikhin/gemini-react-starter