Skip to content
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

Improve usability of test framework #87

Open
kriswest opened this issue Nov 2, 2022 · 0 comments
Open

Improve usability of test framework #87

kriswest opened this issue Nov 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kriswest
Copy link
Contributor

kriswest commented Nov 2, 2022

There are a number of refinements that should be made to the test framework to make it more usable:

1) Add a clear indication that tests are complete.

(superceded by #240)

Adding a 'done' message in the main view after all tests have run would:

  • Ensure that its easy to determine when tests are complete
    • if errors occur in before or after hooks not all tests will run, leading to the progress % stopping at less than 100%
  • Allow the test framework to be more easily installed in a CI system and the results extracted at the end of the run~

image

image

2) Add an easy way to re-run the tests.

Adding a restart or refresh button after all tests have run would make it easier to re-run tests without closing and reopening. This functionality is partially available in that clicking on a group heading in the tests will navigate the framework to grep URL (e.g. http://localhost:3001/v1.2/app/index.html?grep=fdc3%5C.getOrCreateChannel) that will allow you to run just that group. However, there is no way to navigate back to the beginning and re-run all tests.

3) Refine or replace the test selection menu to work with Mocha's built-in grep functionality.

If you click on group heading in the test report, the framework navigates to a grep URL (e.g. http://localhost:3001/v1.2/app/index.html?grep=fdc3%5C.getOrCreateChannel) which will run just that set of tests. However, the menu is not aware of this and will indicate that all tests are being re-run - when they will not be.

https://mochajs.org/#grep

The menu should be aware of the current filter (so it can select the appropriate entry from the menu) and should be able to override/change it. This may mean rebuilding that functionality using Mocha's own filtering support.

@kriswest kriswest added the enhancement New feature or request label Nov 2, 2022
@kriswest kriswest changed the title Add a 'done' message on completion Improve usability of test framework Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant