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

Check if private_generics is used correctly in the integration-test. #351

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Check if private_generics is used correctly in the integration-test. #351

merged 1 commit into from
Jun 26, 2023

Conversation

steelgeek091
Copy link
Collaborator

The issue of not checking private_generics when executing the command rooch move integration-test -p private_generics/ --named-addresses rooch_examples=0x1234 in the examples/private_generics directory has been resolved.

However, there are still some remaining issues:

  1. The datatest_stable::runner_with_opts invocation is bypassed, and the test cases are executed directly. This means that some additional options, such as rooch move test --list to view the current test projects, will not be executed (but it does not affect the testing process).

  2. Because the integration-test depends on a complete Move package, and it is itself a separate Move file, it is not possible to compile them together. Instead, the dependent Move package is compiled first, followed by the compilation of the individual Move file. Finally, the result of compiling the Move package is injected into the checking process of the individual Move file.

resolve #350.

@@ -238,8 +246,8 @@ impl IntegrationTest {
test_args.push(filter);
}

let test_opts = datatest_stable::TestOpts::try_parse_from(test_args.as_slice())?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The datatest_stable::TestOpt can support filters, for example, running a specific test or running tests via prefix.

It also can run tests in multi-thread, I think the datatest_stable is useful, we can refactor it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue has been fixed, and we have resumed using datatest for testing.

… without throwing an error. (#345)

Check if private_generics is used correctly in the integration-test.

Resume using datatest for testing.

cargo fmt

Change the path of the datatest library.
@jolestar jolestar merged commit 55373ef into rooch-network:main Jun 26, 2023
wubuku added a commit to wubuku/rooch that referenced this pull request Jun 27, 2023
* commit '5c4f49d911ef44975a6de8e2bc8ff8f8b181314c':
  migration rooch network (rooch-network#364)
  Remove the TxContext in the move test file. (rooch-network#362)
  Rename framework modules (rooch-network#361)
  fix README typo (rooch-network#359)
  [integration-test-runner] private_generics tests. (rooch-network#354)
  [testing] draft cases for private generics (rooch-network#285)
  Remove TxContext from the check in the entry function. (rooch-network#360)
  [Framework Testing] Add test to account_storage exists and move_from (rooch-network#358)
  add rust setup to workflow (rooch-network#356)
  Fix the issue of illegal invocation of private_generics in the module without throwing an error. (rooch-network#345) (rooch-network#351)
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.

Support compilation and detection of private_generics in the [rooch move integration-test] command.
2 participants