Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-17053

Let IntelliJ run each test class in a separate JVM

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When we run multiple unit test with ANT command, each test class is run in its own JVM instance - we have to do that because many tests set up some static stuff - I don't want to discuss that in this ticket though - it works and must work this way for now.

      However, when we run tests in IntelliJ, especially when we want to run all test classes from the whole package, or selected subset of tests, IntelliJ tries to run all of them in a single JVM which obviously leads to problems.

      Frankly, IntelliJ introduced (I don't know exactly when) a new feature so that each test class can be run in a separate JVM, just like we do when we run with ANT. I this ticket I want to modify the default test configuration for IntelliJ so that it works in the way described above.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jlewandowski Jacek Lewandowski Assign to me
            jlewandowski Jacek Lewandowski
            Jacek Lewandowski
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                Slack

                  Issue deployment