Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: test-virtual (related issue #71) #72

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

taqtiqa-mark
Copy link

This initial commit contains the state of play immediately after
add the example crates:

  • test-project
  • test-procmacro-project

Other than setting up the workspace references no changes
to the example crates have been made.

The integration test harness has not yet been implemented.

Signed-off-by: Mark Van de Vyver mark@taqtiqa.com

@taqtiqa-mark taqtiqa-mark changed the title Add: State for issue #71 Add: test-virtual (related issue #71) Mar 28, 2022
This initial commit contains the state of play immediately after
add the example crates:

- test-project
- test-procmacro-project

Other than setting up the workspace references no changes
to the example crates have been made.

The integration test harness has not yet been implemented.

Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Running:

cargo test workspace-tests

correctly produces:

     Running src/main.rs (target/debug/deps/workspace_tests-8bdd65c7ce129a54)
Setup
Teardown

Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Failing tests remain unchanged:

failures:
    pass
    pass_args
    pass_expect_expanded
    pass_expect_expanded_args
    pr61
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Correctly produces:

Setup
Running basic test
Teardown

Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
Signed-off-by: Mark Van de Vyver <mark@taqtiqa.com>
@taqtiqa-mark
Copy link
Author

Just to clarify the state of play here. Previously this was motivated by:

a infinyon/fluvio plugin-style integration test harness

However, with some experience, that seemed an overly complicated approach (check out the current state of the fluvio integration test code...).

Currently, one can get a generic and elegant template using DJB's redo build system, and following a couple of conventions.

@taiki-e
Copy link
Collaborator

taiki-e commented Apr 12, 2024

All related issues have been closed, but is there still a problem with your use case?

@taqtiqa-mark
Copy link
Author

taqtiqa-mark commented Apr 14, 2024

Setting up a integration test env for a virtual workspace, using the hierarchy of crates that proc-macros necessitate, is a non trivial exercise. So I think there is some value adding this template to the two existing templates is worth while.

As you have observed first hand, it exposed one bug, and its presence should guard against regressions and other issues.

Understand if you disagree and wish to close this as out of scope.

Otherwise, I'll ping you when I believe it is ready for review?

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.

None yet

2 participants