test-suite
test-suite copied to clipboard
proposal for a multi server tests report, with MUST, SHOULD, MAY ...
@michielbdejong @ylebre @edwardsph This is a proposal using MUST, SHOULD, MAY, as described in proposal issue #110 The example below use local repositories, located in solidos/workspaces
- In each tests repository : create a separate run file
(run-against-nss.sh, run-against-css.sh, ....)for each server with ajest outputFilein a folder (example bellow -- if running the tests from solidos stack, the result folder will be in workspaces/test-suite/NSS, CSS, ESS, ... -- env values can be used to include/exclude tests
# init section
export RESULTS_PATH=.../test-suite/NSS/crud-results.json
# select section (
export INCLUDE_MAY=1 # by default 'MAY' is excluded
export SKIP_SHOULD_A12=1 # skip tests referenced 'SHOULD', 'A12'
# npm run jest "$@"
npm run jest -- --verbose --json --outputFile="$RESULTS_PATH" "$@" # verbose is optional
- in test-suite repo run a report builder using all
folder/filescreated : example https://github.com/bourgeoa/test-suite/blob/main/test-suite-report.js - and this is a
simplisticexample text report for the test-suite : https://github.com/bourgeoa/test-suite/blob/main/test-suite-report.txt (the values are real from 8/03/2021) -- default isSHOULDand test numbering default isTxxxto link to errors -- TheMAYexample includes a test id
When I started experimenting with this idea I had a script that aggregated the different results. I'll have a look at it tomorrow and see if it's worth you looking at but I suspect it was a minimal placeholder.