-
Notifications
You must be signed in to change notification settings - Fork 334
Testing EnsoMeta ability to load Enso types from Standard.Base #14287
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
base: develop
Are you sure you want to change the base?
Conversation
| .dependsOn(`poi-wrapper`) | ||
| .dependsOn(`std-base` % "provided") | ||
|
|
||
| lazy val `std-tests` = project |
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.
@jdunkerley, it is possible to run these tests quickly:
sbt:enso> std-tests/clean
sbt:enso> std-tests/test
[info] Test run org.enso.base.polyglot.tests.EnsoMetaTest finished: 1 total, 3.595s
[info] Passed: Total 1, Failed 0, Errors 0, Passed 1
e.g. the test finished in less than four seconds (or in eleven seconds on CI).
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.
- originally I wanted to add these tests into
std-table - but there is recursive project dependency
- as
test-utilsdepend onstd-table(to have Enso distribution fully built) - and making
std-tabledepend ontest-utilswas ... complicated...
|
|
||
| @Test | ||
| public void loadErrorType() { | ||
| var errorType = EnsoMeta.getType("Standard.Base.Error", "Error"); |
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.
To debug:
- but breakpoint on line 23
- let your IDE listen to port 5005
- invoke following in the
sbt
sbt:enso> project std-tests
sbt:std-tests> withDebug --debugger testOnly -- *EnsoMetaTest
- does it work for you @jdunkerley, @AdRiley?
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.
What is the difference between std-tests and runtime-integration-tests? In runtime-integration-tests, we are already doing from Standard.Base import all, for example in VectorSortTest. Why yet another project?
EDIT: std-tests uses stuff from std-base. That is the difference.
Pull Request Description
Standard.Googlein dual JVM mode #14040 indicatesstd-bitsto be tested with@Rule ContextUtilsChecklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,