Skip to content

feat: Use the test name as the test db name - #741

Merged
spencewenski merged 3 commits into
mainfrom
gh-736-tmp-db-test-name
Apr 20, 2025
Merged

spencewenski merged 3 commits into
mainfrom
gh-736-tmp-db-test-name

Conversation

@spencewenski

@spencewenski spencewenski commented Apr 20, 2025

Copy link
Copy Markdown
Member

Updates the test db name to be of the format
tmp/<mod_path_initials>/<test_name>[/<case_name>]/<timestamp>.
This will make it easier to find the DB involved in a test,
including allowing sorting by the test run timestamp.

This also actually fixes the issue of using run_test in cargo test causing the tracing setter to return an error.

Closes #736

Updates the test db name to be of the format
`tmp/<mod_path_initials>/<test_name>[/<case_name>]/<timestamp>`.
This will make it easier to find the DB involved in a test,
including allowing sorting by the test run timestamp.

Closes #736
@codecov

codecov Bot commented Apr 20, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 6.97674% with 40 lines in your changes missing coverage. Please review.

Project coverage is 58.87%. Comparing base (3a73400) to head (453c809).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/app/context.rs 0.00% 40 Missing ⚠️
Files with missing lines Coverage Δ
src/testing/snapshot.rs 100.00% <100.00%> (ø)
src/tracing/mod.rs 74.81% <100.00%> (+0.74%) ⬆️
src/app/context.rs 49.74% <0.00%> (-3.61%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a73400...453c809. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@spencewenski
spencewenski merged commit 2242092 into main Apr 20, 2025
@spencewenski
spencewenski deleted the gh-736-tmp-db-test-name branch April 20, 2025 20:16
@github-actions github-actions Bot mentioned this pull request Apr 20, 2025
spencewenski pushed a commit that referenced this pull request Apr 20, 2025
## 🤖 New release

* `roadster`: 0.7.2 -> 0.7.3 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.7.3](roadster-v0.7.2...roadster-v0.7.3)
- 2025-04-20

### Added

- Use the test name as the test db name
([#741](#741))
- Remove usages of `anyhow`
([#740](#740))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Temp test db use test name

1 participant