![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ember-backstop
Advanced tools
BackstopJS visual regression testing addon for Ember.
ember install ember-backstop
Add these lines to your GIT ignore...
#backstopjs
html_report
bitmaps_test
Add this line to your Mirage config...
this.passthrough('/backstop/**');
You will need the backstop-remote service running for visual tests.
In a seperate window run...
ember backstop-remote
Leave that running while you're testing. When you don't need it anymore you can either close the window or run ember backstop-stop
to stop the service.
First import the backstop helper into your test...
import backstop from 'ember-backstop/test-support/backstop';
Then add a backstop()
helper to any UI state you want to test...
test('it renders the thing', async function(assert) {
await visit('/sales/company/11102');
await backstop(assert);
assert.dom('#myFancyElement').Exists();
});
Now, whenever you run a test, BackstopJS will take a screen shot and compare it against the last known good.
The first time you run backstop-helper tests BackstopJS will fail because there aren't any reference files yet. So, here's what you do...
ember backstop-approve
Tests should pass now.
You can always view the last test run report by running ember backstop-report
in another window.
Anytime you want to promote a changed test to the new reference file, run ember backstop-approve
. This command also takes an optional filter
parameter e.g. ember backstop-approve --filter=testFilenameAsRegExString
See http://backstopjs.org for documentation on BackstopJS -- but keep in mind -- for this implementation all DOM interactions should probably be done in your Ember test -- and not the BackstopJS config.
Questions? Post an issue, propose a feature or just say Hi! https://github.com/garris/ember-backstop/issues
Yes. Please pitch in to make this addon awesome for everyone.
This project is licensed under the MIT License.
FAQs
BackstopJS visual regression testing addon for Ember.
The npm package ember-backstop receives a total of 1,141 weekly downloads. As such, ember-backstop popularity was classified as popular.
We found that ember-backstop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.