[ https://issues.apache.org/jira/browse/CASSANDRA-16745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Abe Ratnofsky updated CASSANDRA-16745: -------------------------------------- Test and Documentation Plan: To test: remove the .idea folder, then regenerate it with ant generate-idea-files, then open in IntelliJ. Run a test that references a PropertyFileSnitch (like NetworkTopologyStrategyTest.testProperties) and see all tests pass. Also, confirm in Project Structure > Modules that test/conf is marked as Test Resources. Status: Patch Available (was: Open) > Fix test failures when running via IntelliJ > ------------------------------------------- > > Key: CASSANDRA-16745 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16745 > Project: Cassandra > Issue Type: Improvement > Components: Test/unit > Reporter: Abe Ratnofsky > Assignee: Abe Ratnofsky > Priority: Low > Labels: IDE > Fix For: 3.0.x, 3.11.x, 4.0.x, 4.x > > > After running `ant generate-idea-files` and opening the project in IntelliJ > IDEA 2021.1.2, tests that referenced PropertyFileSnitch (like > NetworkTopologyStrategyTest.testProperties) failed with error > org.apache.cassandra.exceptions.ConfigurationException: Unable to read > cassandra-topology.properties. > > I fixed this issue in IntelliJ by marking test/conf as Test Resources (under > Project Structure), and have patches to fix `ant generate-idea-files` so the > manual reconfiguration is not necessary: > > 3.0 - [https://github.com/aratno/cassandra/tree/abe-fix-intellij-test-3-0] > 3.11 - [https://github.com/aratno/cassandra/tree/abe-fix-intellij-test-3-11] > 4.0 - [https://github.com/aratno/cassandra/tree/abe-fix-intellij-test-4-0] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org