rwx-research / upload-captain-artifact

This action uploads artifacts, including test results, into Captain.
MIT License
7 stars 0 forks source link

Introduce a parallel implementation of run for test-suites #137

Closed kylekthompson closed 2 years ago

kylekthompson commented 2 years ago

This one's quite large because the tests are very verbose. I tried to pull out some of the shared inputs to a fixtures object, but beyond that, the tests were becoming a little hard to understand.

This is unique compared to src/run.ts in that it has to group artifacts by their name (test suite identifier) and make separate requests to create/update the bulk test results (because that endpoint only accepts a single test suite). Beyond that, it's mostly a 1:1 mapping of the old logic to the new types.