Skip to content

Add more test for reliability #108

Open
@TTWNO

Description

@TTWNO

We should have tests for any type of event which can be passed to odilia/src/events/mod.rs::dispatch, which is currently around 175.
We absolutely need tests to detect what changes are made to state, making sure that certain other parts of state are not affected, etc.

This would essentially be integration testing, since the State requires an active SSIP connection, DBus connection, configurations from files, etc.

I'm putting this in for 0.2.0, since I think focusing on reliability this early will pay off in the long-run.

Here's a list of current functions which can be dispatched to, there should be at least one test per function here:

  • Add code coverage report so we can get an idea of how much code is covered with our tests.
  • document::load_complete
  • cache::add_accessible
  • cache::remove_accessible
  • object::state_changed (this should at least have one case for both adding and removing a state)
  • object::text_caret_moved
  • object::text_changed
  • object::children_changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions