Skip to content

Use a custom Rust test framework#4

Open
jdreaver wants to merge 1 commit intomasterfrom
davidreaver/test-framework
Open

Use a custom Rust test framework#4
jdreaver wants to merge 1 commit intomasterfrom
davidreaver/test-framework

Conversation

@jdreaver
Copy link
Copy Markdown
Owner

I'm trying to follow along with https://os.phil-opp.com/testing/, but I'm using limine instead of the bootloader crate, so I have to roll my own a bit.

Pending TODOs:

  • Somehow link the test binaries to dedicated ISO files to run in QEMU
    • Use cargo test --no-run --message-format=json along with jq to fine the produced binaries
    • Move building the ISO with limine into a script. Make sure to tell limine to wait 0 seconds to boot.
  • Add QEMU exit after tests run.
  • Step back and ensure I actually want to do it this way 😄 I tend to think this is more trouble than its worth. Pure code we can unit test should go into library crates that are unit tested on the host machine, and integration tests will almost certainly need dedicated setup and execution code that isn't helped much by Rust test frameworks.

@jdreaver jdreaver force-pushed the master branch 7 times, most recently from 0fa636f to 9bc0cf6 Compare May 8, 2023 20:00
@jdreaver jdreaver force-pushed the master branch 7 times, most recently from 1d48e78 to f0b6f92 Compare May 16, 2023 18:53
@jdreaver jdreaver force-pushed the master branch 13 times, most recently from 56e7096 to d21c61d Compare May 29, 2023 17:32
@jdreaver jdreaver force-pushed the master branch 2 times, most recently from 6fa2ec9 to 2a7678d Compare June 3, 2023 02:38
@jdreaver jdreaver force-pushed the master branch 5 times, most recently from a4d6568 to 994da3c Compare June 17, 2023 21:38
@jdreaver jdreaver force-pushed the master branch 12 times, most recently from d91283b to a511b01 Compare June 23, 2023 16:53
@jdreaver jdreaver force-pushed the master branch 13 times, most recently from d1fc04b to 3db8aa1 Compare July 4, 2023 16:54
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.

1 participant