Skip to content

Implement new Javascript test case sync mechanism #328

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

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

Andy2003
Copy link
Collaborator

This adds a new 3 way sync mechanism, where the test definitions (Asciidoc), that are generated from neo4j-graphql (js) are stored separately as *.js.adoc.

The new tool JsTestCaseSync.kt now compares the js version with the previous js version and only take over test that were changed. Additionally, the reformatting feature is extracted from the TestSuites into a new tool AsciidocReformater.kt. This removes code that is not test relevant out of the test factories.

As a refactoring, utility functions were also removed from the test factories into own *Utils classes.

This adds a new 3 way sync mechanism, where the test definitions (Asciidoc), that are generated from neo4j graphql (js) are stored separately as `*.js.adoc`.

The new tool JsTestCaseSync.kt now compares the js version with the previous js version and only take over test that were changed.
Additionally, the reformatting feature is extracted from the TestSuites into a new tool AsciidocReformater.kt. This removes code that is not test relevant out of the test factories.

As a refactoring, utility functions were also removed from the test factories into own *Utils classes.
@Andy2003 Andy2003 added enhancement New feature or request test Mraks PRs with adjusted test-cases labels Dec 19, 2024
@Andy2003 Andy2003 self-assigned this Dec 19, 2024
Copy link

Unit Test Results

       4 files  ±0         4 suites  ±0   1m 19s ⏱️ -3s
1 296 tests  - 2  1 281 ✔️  - 2  15 💤 ±0  0 ±0 
1 302 runs   - 2  1 287 ✔️  - 2  15 💤 ±0  0 ±0 

Results for commit f9f233f. ± Comparison against base commit cf743db.

@Andy2003 Andy2003 merged commit 6ac4a87 into master-v2 Dec 19, 2024
2 checks passed
@Andy2003 Andy2003 deleted the feature/new-test-sync-mechanism branch December 19, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request test Mraks PRs with adjusted test-cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant