Make continuous deployment safe by comparing before and after webpage screenshots for each release. Depicted shows when any visual, perceptual differences are found. This is the ultimate, automated end-to-end test.
Local dpxdt has pretty nice tools for setting up a test environment (i.e. creating & population a database, starting the server), waiting for it to be ready and then tearing it down when it's done.
dpxdt makes it really easy to capture screenshots while the test environment is around.
But there are some tests that are better written using assertions than diffing pixels. For example, I'm adding a screenshot that's mostly about verifying that a few numbers are what we expect them to be. The numbers are captured in the screenshot, but the test would be more precise (less brittle) and more explicit if I asserted that that numbers were what I expected. CasperJS has a really nice testing mode for this.
Since dpxdt does the setup/teardown stuff so well, it would be convenient if I could run CasperJS tests while the test environment was around. In the YAML file, this might look something like:
Local dpxdt has pretty nice tools for setting up a test environment (i.e. creating & population a database, starting the server), waiting for it to be ready and then tearing it down when it's done.
dpxdt makes it really easy to capture screenshots while the test environment is around.
But there are some tests that are better written using assertions than diffing pixels. For example, I'm adding a screenshot that's mostly about verifying that a few numbers are what we expect them to be. The numbers are captured in the screenshot, but the test would be more precise (less brittle) and more explicit if I
assert
ed that that numbers were what I expected. CasperJS has a really nice testing mode for this.Since dpxdt does the setup/teardown stuff so well, it would be convenient if I could run CasperJS tests while the test environment was around. In the YAML file, this might look something like:
Questions:
dpxdt test
is clear. But what about when you rundpxdt update
? Would it skip the test?