Skip to content

Commit

Permalink
GH-2262: As a smith I want to change when/how tests of n4js-libs are …
Browse files Browse the repository at this point in the history
…executed and restructure test bundles (#2264)

* simplify build (remove start/stop verdaccio functionality from pom's)

* delete CliJarWithVerdaccioJarTest

* some clean up in org.eclipse.n4js.integration.tests

* fix bug in shell scripts

* move project discovery tests from .cli.tests to .ide.tests bundle

* move CLI front-end tests from .cli.tests to .ide.tests bundle

* delete bundle org.eclipse.n4js.cli.tests

* some fixes and improvements

* copying n4jsc.jar to n4js-cli/bin is repsonibility of publishing script

* move all AbstractCliCompileTests from .ide.tests to .integration.tests

* delete some unused test fixtures/probands

* delete references to unused maven plugin 'maven-verifier-plugin'

* let BuildN4jsLibs generate .n4js.projectstate files

* rename a package

* move testing of n4js-libs from publishing script to a JUnit test

* fix a path

* fix bug in N4jsLibsTest

* move deployment of n4jsc.jar from publishing script to BuildN4jsLibs
  • Loading branch information
mor-n4 authored Nov 15, 2021
1 parent ff56300 commit 96f65ff
Show file tree
Hide file tree
Showing 442 changed files with 394 additions and 2,228 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ In case of local changes of n4js-libs one way of including them is to use a loca
The verdaccio is first populated by running maven, and then used when executing `npm install` in the directory `n4js-vscode-extension`.

* Start docker
* Run maven with: `mvn -DnoTests -DstartAndKeepVerdaccio clean verify`
* Run maven with: `mvn -DnoTests clean verify`
* Start and populate a local verdaccio server with: `./releng/utils/scripts/start-verdaccio.sh`
* Change directory to `n4js-vscode-extension`
* Remove `node_modules` folder and `package-lock.json` file
* Install from local verdaccio with: `npm install --registry http://localhost:4873`
19 changes: 2 additions & 17 deletions docs/org.eclipse.n4js.design/chapters/03_releng/releng.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,10 @@ You may have to increase the memory for maven via `export MAVEN_OPTS="-Xmx2048m"
Available optional maven profiles are:

[horizontal]
execute-basic-tests:: run basic tests (e.g. `org.eclipse.n4js.lang.tests`); active by default, use `-DdoNotExecuteBasicTests` to deactivate
execute-ecmas-tests:: run ECMA test suite
execute-basic-tests:: run basic tests (e.g. `org.eclipse.n4js.lang.tests`; also includes `org.eclipse.n4js.integration.tests`); active by default, use `-DdoNotExecuteBasicTests` to deactivate
execute-ecma-tests:: run ECMA test suite
execute-smoke-tests:: run generated tests using corrupted source code as input
execute-accesscontrol-tests:: run generated tests for checking accessibility of class/interface members
execute-jar-tests:: run tests using the headless jar (in bundle `org.eclipse.n4js.ide.tests.jar`, requires docker and verdaccio!)

Available system properties:

Expand All @@ -187,7 +186,6 @@ noTesthelpers:: if defined (i.e. "-DnoTesthelpers"), omit projects in f
noDocs:: if defined (i.e. "-DnoDocs"), omit projects in folder "docs" from maven build
doNotExecuteBasicTests:: if defined (i.e. "-DdoNotExecuteBasicTests"), deactivate profile "execute-basic-tests"
languageVersion:: an optional version string to show in the Eclipse About dialog of IDE products (should be defined by publishing builds)
startAndKeepVerdaccio:: if defined (i.e. "-DstartAndKeepVerdaccio"), enforce starting and suppress stopping of the test verdaccio (see <<sec:test-verdaccio>>)



Expand All @@ -203,19 +201,6 @@ The existence of `local-snapshot-deploy-folder` will trigger a profile enabling



[[sec:test-verdaccio]]
=== Test Verdaccio containing n4js-libs

If profile `execute-jar-tests` is active, a local verdaccio instance is started and populated with
freshly-compiled n4js-libs (the libraries located under top-level folder `/n4js-libs`) and is stopped before the
end of the build. The verdaccio instance is started as a docker container called `n4js-test-verdaccio`.

When giving `-DstartAndKeepVerdaccio` on the command line, such a test verdaccio will always be started/populated but
never stopped, regardless of whether profile `execute-jar-tests` is active or not. This is useful to enforce
starting of the test verdaccio (even without running integration tests) and then reusing it in subsequent builds.



=== Generation of Eclipse help for spec and design document

The HTML pages for N4JSSpec and N4JSDesign documents are generated from the Asciidoc sources in the project `org.eclipse.n4js.spec` `org.eclipse.n4js.design` by Asciispec. 
Expand Down
115 changes: 0 additions & 115 deletions jenkins/eclipse-nightly.jenkinsfile

This file was deleted.

153 changes: 0 additions & 153 deletions jenkins/eclipse-publish.jenkinsfile

This file was deleted.

Loading

0 comments on commit 96f65ff

Please sign in to comment.