From a4ec061fc73082fa265570002a2c29dfc51091af Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Fri, 25 Nov 2022 19:52:32 +0100 Subject: [PATCH] Add a suite of IntelliJ run configurations Add a suite of IntelliJ run configurations to make it easier for new developers to onboard the project and better Maven discoverability. The run configurations should appear automatically after loading the project in IntelliJ, in the Run > Run... menu. The configurations are organized to three groups: 1. build: clean, format, build, full build 2. test: unit tests, integration tests - including configurations to run them against Scylla, Cassandra, run only a single test 3. install: package, install --- .run/build.run.xml | 64 +++++++++++++++++++ .run/clean.run.xml | 45 +++++++++++++ .run/format.run.xml | 27 ++++++++ .run/full build.run.xml | 30 +++++++++ .run/install.run.xml | 27 ++++++++ .run/integration tests (all, C_).run.xml | 32 ++++++++++ .run/integration tests (all, Scylla).run.xml | 32 ++++++++++ .run/integration tests (single, C_).run.xml | 34 ++++++++++ ...integration tests (single, Scylla).run.xml | 34 ++++++++++ .run/package.run.xml | 27 ++++++++ .run/unit test (single).run.xml | 32 ++++++++++ .run/unit tests (all).run.xml | 30 +++++++++ CONTRIBUTING.md | 4 ++ 13 files changed, 418 insertions(+) create mode 100644 .run/build.run.xml create mode 100644 .run/clean.run.xml create mode 100644 .run/format.run.xml create mode 100644 .run/full build.run.xml create mode 100644 .run/install.run.xml create mode 100644 .run/integration tests (all, C_).run.xml create mode 100644 .run/integration tests (all, Scylla).run.xml create mode 100644 .run/integration tests (single, C_).run.xml create mode 100644 .run/integration tests (single, Scylla).run.xml create mode 100644 .run/package.run.xml create mode 100644 .run/unit test (single).run.xml create mode 100644 .run/unit tests (all).run.xml diff --git a/.run/build.run.xml b/.run/build.run.xml new file mode 100644 index 00000000000..8a85a74b8e8 --- /dev/null +++ b/.run/build.run.xml @@ -0,0 +1,64 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.run/clean.run.xml b/.run/clean.run.xml new file mode 100644 index 00000000000..c8fb98c3f23 --- /dev/null +++ b/.run/clean.run.xml @@ -0,0 +1,45 @@ + + + + + + + + + \ No newline at end of file diff --git a/.run/format.run.xml b/.run/format.run.xml new file mode 100644 index 00000000000..bcdcaa2b18d --- /dev/null +++ b/.run/format.run.xml @@ -0,0 +1,27 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/full build.run.xml b/.run/full build.run.xml new file mode 100644 index 00000000000..6807769958e --- /dev/null +++ b/.run/full build.run.xml @@ -0,0 +1,30 @@ + + + + + + + + + \ No newline at end of file diff --git a/.run/install.run.xml b/.run/install.run.xml new file mode 100644 index 00000000000..61ac7b68bcc --- /dev/null +++ b/.run/install.run.xml @@ -0,0 +1,27 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/integration tests (all, C_).run.xml b/.run/integration tests (all, C_).run.xml new file mode 100644 index 00000000000..7a3bf2295d4 --- /dev/null +++ b/.run/integration tests (all, C_).run.xml @@ -0,0 +1,32 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/integration tests (all, Scylla).run.xml b/.run/integration tests (all, Scylla).run.xml new file mode 100644 index 00000000000..f744f3e2aea --- /dev/null +++ b/.run/integration tests (all, Scylla).run.xml @@ -0,0 +1,32 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/integration tests (single, C_).run.xml b/.run/integration tests (single, C_).run.xml new file mode 100644 index 00000000000..427787fc87d --- /dev/null +++ b/.run/integration tests (single, C_).run.xml @@ -0,0 +1,34 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/integration tests (single, Scylla).run.xml b/.run/integration tests (single, Scylla).run.xml new file mode 100644 index 00000000000..e995a1ebce5 --- /dev/null +++ b/.run/integration tests (single, Scylla).run.xml @@ -0,0 +1,34 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/package.run.xml b/.run/package.run.xml new file mode 100644 index 00000000000..f51826a0c70 --- /dev/null +++ b/.run/package.run.xml @@ -0,0 +1,27 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/unit test (single).run.xml b/.run/unit test (single).run.xml new file mode 100644 index 00000000000..e2e71ad1759 --- /dev/null +++ b/.run/unit test (single).run.xml @@ -0,0 +1,32 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/unit tests (all).run.xml b/.run/unit tests (all).run.xml new file mode 100644 index 00000000000..595d6624269 --- /dev/null +++ b/.run/unit tests (all).run.xml @@ -0,0 +1,30 @@ + + + + + + + + \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be63f984c2b..2980daabef1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,6 +71,10 @@ If you want to contribute but don't have a specific issue in mind, it's best to ## Editor configuration +For IntelliJ IDEA users, a suite of run configurations is bundled with the project (`.run` directory). +The run configurations should appear automatically in Run > Run... after loading the project in IntelliJ. They provide +a convenient way to build and test the project. + We use IntelliJ IDEA with the default formatting options, with one exception: check "Enable formatter markers in comments" in Preferences > Editor > Code Style.