GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add new import/export system for JavaScript by rudolf101 · Pull Request #2188 · UnitTestBot/UTBotJava

Conversation

@rudolf101

@rudolf101 rudolf101 commented Apr 26, 2023

Copy link
Copy Markdown
Member

Description

Add support for generating tests for multi-file projects.
Add new tests for multi-file projects.

How to test

Manual tests

Various scenarios have been tested. You can find the examples in the folder `/utbot-js/samples' and try to run UTBot.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
zishkaz and others added 9 commits April 3, 2023 16:58
@zishkaz
[WIP] Implemented project-wide imports collection
6a5108d
@zishkaz
Implemented project-wide import/exports manager
4467a9e
@zishkaz
Hotfix
7bb5cde
@zishkaz
Valdo, havai
489e5bd
@zishkaz
Add tests for multi-file projects
49c0edc
@zishkaz
Merge branch 'main' into sergeyl/imp-exp-enhancement
4291219
@zishkaz
Fixed chainImports.js test file
544055b
@rudolf101
Improve tests
cef1987
@rudolf101
Cleanup code
0c5a4ce
@rudolf101 rudolf101 added ctg-enhancement New feature, improvement or change request comp-codegen Issue is related to code generator lang-javascript Issue is related to JavaScript support labels Apr 26, 2023
@rudolf101
rudolf101 requested a review from Markoutte April 26, 2023 10:22
@rudolf101 rudolf101 assigned zishkaz Apr 26, 2023
Markoutte
Markoutte reviewed May 10, 2023
View reviewed changes

@Markoutte Markoutte left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I cannot get any test for scenarioMultyClassNoTopLevel.js in any method. Also, has an exception:

java.lang.UnsupportedOperationException: No test cases were generated for fDel
	at api.JsTestGenerator.makeTestsForMethod(JsTestGenerator.kt:204)
	at api.JsTestGenerator.run(JsTestGenerator.kt:142)
	at org.utbot.intellij.plugin.language.js.JsDialogProcessor$createTests$1.run(JsDialogProcessor.kt:195)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Markoutte Markoutte Markoutte left review comments

At least 2 approving reviews are required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@zishkaz zishkaz

Labels

comp-codegen Issue is related to code generator ctg-enhancement New feature, improvement or change request lang-javascript Issue is related to JavaScript support

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@rudolf101 @Markoutte @zishkaz
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.