-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing Strategy #3
Comments
So I have decided to use cargo taurpalin to generate a test coverage report. This will help me build out unit tests to cover the parser and scanner, which will reduce the number of E2E tests required to run in an actual browser. |
Wow so that worked shockingly well, I've just pushed an integration test setup with 48.59% test coverage in like, an hour. The plan for building out tests is: |
So I just made a commit at 62% code coverage from the integration tests. Most of the untested code is the CLI, and I'm fairly certain I'm going to keep this test setup around, so I'm gonna move this to done :) |
SchnauzerUI needs an overarching testing strategy. The shape of the program is pretty well defined, so we need to decide on where and how certain things will be tested.
Currently the only tests the project has are "test scripts", which are SchnauzerUI scripts which can be run to serve as E2E tests.
It needs unit tests and "integration" tests as well. Actually launching the browser and executing scripts can be a pain, especially where timeouts are involved. Setting up the tests also requires a website to test against, which needs to be updated and redeployed each time a test is added, which is a mega pain. Finally, running webdrivers in ci/cd pipelines like github actions is always a pain.
It'd be REALLY nice if I could somehow provide test HTML to test against without launching the browser. I'll be doing some discovery related to all of this.
The text was updated successfully, but these errors were encountered: