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 15 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 [email protected]

@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 <[email protected]>
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 <[email protected]>
Failing tests remain unchanged:

failures:
    pass
    pass_args
    pass_expect_expanded
    pass_expect_expanded_args
    pr61
Signed-off-by: Mark Van de Vyver <[email protected]>
Signed-off-by: Mark Van de Vyver <[email protected]>
Correctly produces:

Setup
Running basic test
Teardown

Signed-off-by: Mark Van de Vyver <[email protected]>
Signed-off-by: Mark Van de Vyver <[email protected]>
@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?

@taiki-e
Copy link
Collaborator

taiki-e commented Jan 22, 2025

Sorry for the late response. Most of the code being added here seems to be larger and more complex than necessary both as examples and as test cases, so I would prefer not to merge this PR as is, but I would be happy to accept a PR that adds smaller, simpler test cases.

@taqtiqa-mark
Copy link
Author

I'll have a look at what can be rationalized. I think you are correct, we are likely looking at different use cases. I'm not a FT programmer and find it more efficient to delete than add. Your managing a project for programmers.

I'll see where I land and will ping you when there is something to look at. Or will close this if I can't make substantial simplifications.

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.

2 participants