-
Notifications
You must be signed in to change notification settings - Fork 9
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
Run subset of tests and address performance issues #11
Comments
Additionally the test suite currently takes around 60 seconds to startup, before it runs any tests. It outputs Can we improve performance here? What are we doing to slow things down? |
Also we should make parallel execution of tests configurable, as this can have the effect of slowing down testing for a larger number of tests against a database |
This is already configurable, just needs documenting. Defaults are in the package.json, and can also be changed via commandline args.
|
Running a subset of tests can be done just by specifying the test path, this can be a directory (run everything within).
(run all book and cancel flows). all the way down to specifying an individual test file:
|
Ok great! Can we also use wildcards? The usecase I'm thinking of is where we have (following discussions this morning and notes in #34):
and we perhaps only want to run those that only involve "ScheduledSession" (because they haven't implemented Unless there's another approach we can take here? |
Need to allow a subset of the tests to be run for only |
Trying to figure out whether we can implement some sort of filtering system - being able to define them much like rspec would be nice: https://relishapp.com/rspec/rspec-core/docs/hooks/filters |
@ylt to scope this issue down to something achievable within a reasonable timebox, could we just cover the following two in a config file: Configuration specThe test suite can be configured to test "optional" features, by indicating whether they are either:
Additionally, bookable opportunity types can be configured, to indicate which types the implementation is expected to support:
Configuration exampleAn example config file could look like this:
Logic exampleAn example of how this should work: If
If
If
Depending on the boolean values of
|
All the issues mentioned here have been resolved / implemented |
Can we specify parameters somehow to only run some of the tests, or otherwise pipe more of the output into the log files?
For example could we add a category (e.g. "C1only", "endtoend") to each of the tests, and use parameters to run only tests in a certain category?
The results are fairly overwhelming on first run
The text was updated successfully, but these errors were encountered: