Implement rux test: discover and run Tests/ packages#118
Open
BibhabenduMukherjee wants to merge 4 commits into
Open
Implement rux test: discover and run Tests/ packages#118BibhabenduMukherjee wants to merge 4 commits into
BibhabenduMukherjee wants to merge 4 commits into
Conversation
Replace the placeholder RunTest stub with a working test runner. rux test now: - Scans Tests/ for subdirectories containing a Rux.toml with Type = "bin" - Builds each package in-process (via RunBuild with a temporary chdir) - Executes the resulting binary and treats exit 0 as PASS - Prints per-package PASS/FAIL lines and a final ok/FAILED summary - Exits non-zero if any test package fails Mirrors the convention established by the existing shell scripts in Tests/ (run_*.sh), which also build and assert exit 0. Also updates CONTRIBUTING.md to document the test layout, how to add new test packages, and the role of the shell-based scripts.
…in to avoid blocking
584f537 to
5b45117
Compare
Contributor
|
Hello, Developer here. As the Rux-lang team is currently working on releasing the Newest version of the Compiler we sadly Cannot merge PR's which include new functionality currently. Your Pull Request will be reviewed after the Release has been finalized and the development for the next version has started Thank you for Contributing and for your time. |
Natuworkguy
requested changes
Jun 10, 2026
Author
|
Fixed both — changed the wording to 'Running workspace tests' and corrected the function syntax to func in CONTRIBUTING.md. Thanks for the review! |
Natuworkguy
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR replaces the placeholder
RunTeststub inrux testwith a fully functional test runner. It discovers, builds, and executes test packages, verifying exit codes to report test suite success/failure.Changes Made
Tests/containing aRux.tomlmanifest withType = "bin".RunBuildpipeline.current_dir / "Tests"if no rootRux.tomlis present (allowing developers to run./build/rux testdirectly from the compiler repo's root directory).hStdInputon Windows, file descriptor0on Unix) toNUL//dev/nullso that tests exercising stdin (e.g.Echo) immediately receive EOF rather than blocking indefinitely.CONTRIBUTING.mdto document the test layout, how to run tests, and how to write new test packages.